diff --git a/process.c b/process.c index 7bc0ce1e3b..00f8aa38e0 100644 --- a/process.c +++ b/process.c @@ -4569,7 +4569,7 @@ proc_daemon(int argc, VALUE *argv) case 0: break; default: - _exit(0); + _exit(EXIT_SUCCESS); } proc_setsid(); @@ -4581,7 +4581,7 @@ proc_daemon(int argc, VALUE *argv) case 0: break; default: - _exit(0); + _exit(EXIT_SUCCESS); } if (!RTEST(nochdir))