diff options
Diffstat (limited to 'svr-session.c')
-rw-r--r-- | svr-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-session.c b/svr-session.c index 77d167b..7703a8f 100644 --- a/svr-session.c +++ b/svr-session.c @@ -84,7 +84,7 @@ void svr_session(int sock, int childpipe) { /* Initialise server specific parts of the session */ svr_ses.childpipe = childpipe; -#ifdef __uClinux__ +#ifndef HAVE_FORK svr_ses.server_pid = getpid(); #endif svr_authinitialise(); @@ -157,7 +157,7 @@ void svr_dropbear_exit(int exitcode, const char* format, va_list param) { _dropbear_log(LOG_INFO, fmtbuf, param); -#ifdef __uClinux__ +#ifndef HAVE_FORK /* only the main server process should cleanup - we don't want * forked children doing that */ if (svr_ses.server_pid == getpid()) |