JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
ok, using signal.h for portability reasons
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index d6dc467..378fde5 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -23,6 +23,7 @@
 #include <errno.h>
 #include <locale.h>
 #include <stdarg.h>
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -342,7 +343,6 @@ cleanup(void) {
        Arg a = {.ui = ~0};
        Layout foo = { "", NULL };
 
-       close(STDIN_FILENO);
        view(&a);
        lt[sellt] = &foo;
        while(stack)