dont't close STDIN in cleanup()

This commit is contained in:
Julien Danjou 2007-10-11 18:56:22 +02:00
parent e22b1e2a73
commit 1fa1ce1c93
1 changed files with 1 additions and 2 deletions

View File

@ -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);