diff options
author | Rob Landley <rob@landley.net> | 2014-12-04 21:46:59 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-12-04 21:46:59 -0600 |
commit | 50fc9ed007b084883fb09c64866c45c571e70a99 (patch) | |
tree | e74fcf5c070a01666382e077394f62687af69dd1 /lib/xwrap.c | |
parent | 2fb85a3588bf2271e0506c5ab3bcb6a84bf77255 (diff) | |
download | toybox-50fc9ed007b084883fb09c64866c45c571e70a99.tar.gz |
Work with buildroot's extensively patched uClibc, and for nommu support move xfork() to portability.h and #ifdef based on __uClinux__ (which seems to be the nommu compiler define).
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r-- | lib/xwrap.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c index 96db3522..d7030653 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -127,15 +127,6 @@ void xflush(void) if (fflush(stdout) || ferror(stdout)) perror_exit("write");; } -pid_t xfork(void) -{ - pid_t pid = fork(); - - if (pid < 0) perror_exit("fork"); - - return pid; -} - // Call xexec with a chunk of optargs, starting at skip. (You can't just // call xexec() directly because toy_init() frees optargs.) void xexec_optargs(int skip) |