JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed unnecessary closure of stdin reported by Frederic Chardon, thx
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index d6dc467..883610a 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -27,6 +27,7 @@
 #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>
@@ -342,7 +343,6 @@ cleanup(void) {
        Arg a = {.ui = ~0};
        Layout foo = { "", NULL };
 
-       close(STDIN_FILENO);
        view(&a);
        lt[sellt] = &foo;
        while(stack)