Skip to content

Commit

Permalink
Re-add missing setsid(), missed #ifdef conversion
Browse files Browse the repository at this point in the history
Fixes: 2a81289 ("Make DEBUG_NOFORK a #if not #ifdef")
Fixes #180 github issue
  • Loading branch information
mkj committed Jul 18, 2022
1 parent a7e3b06 commit 7de29c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svr-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7de29c2

Please sign in to comment.