Mercurial > dropbear
comparison dbutil.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 | 16af1decaf4c |
children | fc7ae88e63b3 |
comparison
equal
deleted
inserted
replaced
665:4d9511f98462 | 666:0ad95abf8d3c |
---|---|
441 } | 441 } |
442 if (ret_errfd && pipe(errfds) != 0) { | 442 if (ret_errfd && pipe(errfds) != 0) { |
443 return DROPBEAR_FAILURE; | 443 return DROPBEAR_FAILURE; |
444 } | 444 } |
445 | 445 |
446 #ifdef __uClinux__ | 446 #ifndef HAVE_FORK |
447 pid = vfork(); | 447 pid = vfork(); |
448 #else | 448 #else |
449 pid = fork(); | 449 pid = fork(); |
450 #endif | 450 #endif |
451 | 451 |