From 83518d18a34a3ddfcaac1739930d8469f5bc2442 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 20 Mar 2009 22:17:13 +0000 Subject: Compatibility fixes: grep: support -z find: support --mindepth together +45 bytes cpio: support -p (configurable, +230 bytes) libbb: tweaks for cpio --- miscutils/setsid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 127adf6..d7de1f1 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c @@ -26,7 +26,8 @@ int setsid_main(int argc UNUSED_PARAM, char **argv) * Otherwise our PID serves as PGID of some existing process group * and cannot be used as PGID of a new process group. */ if (getpgrp() == getpid()) - forkexit_or_rexec(argv); + if (fork_or_rexec(argv)) + exit(EXIT_SUCCESS); /* parent */ setsid(); /* no error possible */ -- cgit v1.1