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 73ce7bf..378fde5 100644 (file)
--- a/dwm.c
+++ b/dwm.c
 #include <errno.h>
 #include <locale.h>
 #include <stdarg.h>
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/signal.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <X11/cursorfont.h>
@@ -343,7 +343,6 @@ cleanup(void) {
        Arg a = {.ui = ~0};
        Layout foo = { "", NULL };
 
-       close(STDIN_FILENO);
        view(&a);
        lt[sellt] = &foo;
        while(stack)