From 5093c3fa40717e78b0a63955640a8ac9071b5c07 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 22 Oct 2004 18:45:08 +0000 Subject: try to implement the daemonize hack. --- src/libthread/exec-unix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libthread/exec-unix.c') 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); } -- cgit v1.2.3