diff options
| author | rsc <devnull@localhost> | 2004-10-22 18:45:08 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-10-22 18:45:08 +0000 |
| commit | 5093c3fa40717e78b0a63955640a8ac9071b5c07 (patch) | |
| tree | 10141d54500447e4e4fee9aa0b6f9c8d0bcc7352 /src/libthread/exec-unix.c | |
| parent | 048610b7ea50507c6987d5b0cc0c4810cda87d53 (diff) | |
| download | plan9port-5093c3fa40717e78b0a63955640a8ac9071b5c07.tar.gz plan9port-5093c3fa40717e78b0a63955640a8ac9071b5c07.zip | |
try to implement the daemonize hack.
Diffstat (limited to 'src/libthread/exec-unix.c')
| -rw-r--r-- | src/libthread/exec-unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libthread/exec-unix.c b/src/libthread/exec-unix.c index 73a2faf7..f69fedca 100644 --- a/src/libthread/exec-unix.c +++ b/src/libthread/exec-unix.c @@ -4,7 +4,7 @@ #include "threadimpl.h" static void efork(int[3], int[2], char*, char**); -static int +int _threadexec(Channel *pidc, int fd[3], char *prog, char *args[], int freeargs) { int pfd[2]; @@ -88,14 +88,14 @@ Bad: void threadexec(Channel *pidc, int fd[3], char *prog, char *args[]) { - if(_threadexec(pidc, fd, prog, args, 0) >= 0) + if(_callthreadexec(pidc, fd, prog, args, 0) >= 0) threadexits(nil); } int threadspawn(int fd[3], char *prog, char *args[]) { - return _threadexec(nil, fd, prog, args, 0); + return _callthreadexec(nil, fd, prog, args, 0); } /* @@ -128,7 +128,7 @@ threadexecl(Channel *pidc, int fd[3], char *f, ...) args[n] = 0; va_end(arg); - if(_threadexec(pidc, fd, f, args, 1) >= 0) + if(_callthreadexec(pidc, fd, f, args, 1) >= 0) threadexits(nil); } |
