From 7de29c2686812b8c2075c0de18b3df9a13cf72e2 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 18 Jul 2022 15:01:51 +0800 Subject: [PATCH] Re-add missing setsid(), missed #ifdef conversion Fixes: 2a81289 ("Make DEBUG_NOFORK a #if not #ifdef") Fixes #180 github issue --- svr-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr-main.c b/svr-main.c index be69e3968..92343614b 100644 --- a/svr-main.c +++ b/svr-main.c @@ -330,7 +330,7 @@ static void main_noinetd(int argc, char ** argv, const char* multipath) { m_free(remote_host); m_free(remote_port); -#ifndef DEBUG_NOFORK +#if !DEBUG_NOFORK if (setsid() < 0) { dropbear_exit("setsid: %s", strerror(errno)); }