From a95b6f3e44bfd28d7cc807c11bb63c8b714c7985 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 10 Apr 2005 01:01:33 +0000 Subject: [PATCH] ignore errors during setsid(2) execution (required for vs1.9.5.12+) git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2015 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/context-sync.hc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-vserver/src/context-sync.hc b/util-vserver/src/context-sync.hc index 07a72de..4f8ef33 100644 --- a/util-vserver/src/context-sync.hc +++ b/util-vserver/src/context-sync.hc @@ -48,7 +48,7 @@ doSyncStage1(int p[2][2], bool do_disconnect) if (!do_disconnect) return; fd = EopenD("/dev/null", O_RDONLY|O_NONBLOCK, 0); - Esetsid(); + (void)setsid(); // ignore error when we are already a session-leader Edup2(fd, 0); Eclose(p[1][0]); if (fd!=0) Eclose(fd); -- 1.8.1.5