Re-add missing setsid(), missed #ifdef conversion

Fixes: 2a81289 ("Make DEBUG_NOFORK a #if not #ifdef")
Fixes #180 github issue
This commit is contained in:
Matt Johnston 2022-07-18 15:01:51 +08:00
parent a7e3b06b04
commit 7de29c2686

View File

@ -330,7 +330,7 @@ static void main_noinetd(int argc, char ** argv, const char* multipath) {
m_free(remote_host); m_free(remote_host);
m_free(remote_port); m_free(remote_port);
#ifndef DEBUG_NOFORK #if !DEBUG_NOFORK
if (setsid() < 0) { if (setsid() < 0) {
dropbear_exit("setsid: %s", strerror(errno)); dropbear_exit("setsid: %s", strerror(errno));
} }