diff svr-session.c @ 666:0ad95abf8d3c

check for fork() and not __uClinux__
author Mike Frysinger <vapier@gentoo.org>
date Sun, 08 Apr 2012 01:50:52 -0400
parents b5cc8878d5ec
children fc7ae88e63b3
line wrap: on
line diff
--- a/svr-session.c	Sun Apr 08 02:06:54 2012 -0400
+++ b/svr-session.c	Sun Apr 08 01:50:52 2012 -0400
@@ -84,7 +84,7 @@
 
 	/* 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 @@
 
 	_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())