summaryrefslogtreecommitdiffhomepage
path: root/svr-session.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-08 01:50:52 -0400
committerMike Frysinger <vapier@gentoo.org>2012-04-08 01:50:52 -0400
commitc957edbe759ba8d708a882dcb9ab3b2aa1a72ad1 (patch)
tree36beaf972edc2571688c80a213848939aadc2f06 /svr-session.c
parent33ae2be52e57d407df5cdfd836f66a8210a54e5b (diff)
check for fork() and not __uClinux__
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c4
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())