summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-19 14:37:03 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-19 14:37:03 +0200
commit1e4c80799fd17b1b0841d7108ee752b685f72dba (patch)
tree91db4353fcb14430aab20ee7f65263d52468f82b /thread.c
parenteeaa969186650ed419404a76453140a9c91f47d1 (diff)
downloadvdr-1e4c80799fd17b1b0841d7108ee752b685f72dba.tar.gz
vdr-1e4c80799fd17b1b0841d7108ee752b685f72dba.tar.bz2
Improved shutdown handling
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index a0647d0e..95831242 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.62 2007/08/24 13:15:48 kls Exp $
+ * $Id: thread.c 1.63 2007/10/19 14:30:13 kls Exp $
*/
#include "thread.h"
@@ -518,7 +518,7 @@ int SystemExec(const char *Command, bool Detached)
if (Detached) {
// Fork again and let first child die - grandchild stays alive without parent
if (fork() > 0)
- exit(0);
+ _exit(0);
// Start a new session
pid_t sid = setsid();
if (sid < 0)