mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Close stdin/stdout/stderr.
This commit is contained in:
parent
c1726281c9
commit
fbbf46ef71
4
server.c
4
server.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: server.c,v 1.113 2009-01-27 21:39:15 nicm Exp $ */
|
/* $Id: server.c,v 1.114 2009-01-27 22:55:33 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -149,7 +149,7 @@ server_start(const char *path)
|
|||||||
* Must daemonise before loading configuration as the PID changes so
|
* Must daemonise before loading configuration as the PID changes so
|
||||||
* $TMUX would be wrong for sessions created in the config file.
|
* $TMUX would be wrong for sessions created in the config file.
|
||||||
*/
|
*/
|
||||||
if (daemon(1, 1) != 0)
|
if (daemon(1, 0) != 0)
|
||||||
fatal("daemon failed");
|
fatal("daemon failed");
|
||||||
|
|
||||||
ARRAY_INIT(&windows);
|
ARRAY_INIT(&windows);
|
||||||
|
Loading…
Reference in New Issue
Block a user