From 1fa1ce1c93b401df26ca4437dfcca1939bb7b467 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 11 Oct 2007 18:56:22 +0200 Subject: [PATCH] dont't close STDIN in cleanup() --- awesome.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index 0270dfdb..065e9ae0 100644 --- a/awesome.c +++ b/awesome.c @@ -55,8 +55,6 @@ cleanup(awesome_config *awesomeconf) { int screen, i; - close(STDIN_FILENO); - while(stack) { unban(stack); @@ -414,6 +412,7 @@ main(int argc, char *argv[]) handler[ev.type](&ev, awesomeconf); /* call handler */ } } + close(STDIN_FILENO); cleanup(awesomeconf); XCloseDisplay(dpy);