From b23581583145d31b48e8dc836a943c803033eeec Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 8 Feb 2009 16:26:43 +0000 Subject: Don't close fds, so error message appears. --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 290ab8f0..29aed79f 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.117 2009-02-08 16:11:26 nicm Exp $ */ +/* $Id: server.c,v 1.118 2009-02-08 16:26:43 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -151,7 +151,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, 0) != 0) + if (daemon(1, 1) != 0) fatal("daemon failed"); ARRAY_INIT(&windows); -- cgit