diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 22:55:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 22:55:33 +0000 |
commit | fbbf46ef71c940c4ab9b9c8f8d08f533fab8ef5e (patch) | |
tree | 05492c660cba616c5c98bee4a1df72c27467655c | |
parent | c1726281c925cbc0b6828a4cf41f7a300afc5901 (diff) | |
download | rtmux-fbbf46ef71c940c4ab9b9c8f8d08f533fab8ef5e.tar.gz rtmux-fbbf46ef71c940c4ab9b9c8f8d08f533fab8ef5e.tar.bz2 rtmux-fbbf46ef71c940c4ab9b9c8f8d08f533fab8ef5e.zip |
Close stdin/stdout/stderr.
-rw-r--r-- | server.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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> @@ -149,7 +149,7 @@ server_start(const char *path) * Must daemonise before loading configuration as the PID changes so * $TMUX would be wrong for sessions created in the config file. */ - if (daemon(1, 1) != 0) + if (daemon(1, 0) != 0) fatal("daemon failed"); ARRAY_INIT(&windows); |