diff options
Diffstat (limited to 'libc/stdlib/unix_grantpt.c')
-rw-r--r-- | libc/stdlib/unix_grantpt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index eb6ce0b35..c8d70ad64 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -140,7 +140,11 @@ grantpt (int fd) /* We have to use the helper program. */ helper: +#ifdef __UCLIBC_HAS_MMU__ pid = fork (); +#else + pid = vfork (); +#endif if (pid == -1) goto cleanup; else if (pid == 0) |