Date: Sat, 20 Nov 2004 05:03:37 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 65527 for review Message-ID: <200411200503.iAK53bTV013557@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=65527 Change 65527 by davidxu@davidxu_alona on 2004/11/20 05:03:09 directly call __sys_execve. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_execve.c#2 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_execve.c#2 (text+ko) ==== @@ -39,25 +39,5 @@ int _execve(const char *name, char *const *argv, char *const *envp) { - struct kse_execve_args args; - struct pthread *curthread = _get_curthread(); - int ret; - - if (curthread->attr.flags & PTHREAD_SCOPE_SYSTEM) - ret = __sys_execve(name, argv, envp); - else { - /* - * When exec'ing, set the kernel signal mask to the thread's - * signal mask to satisfy POSIX requirements. - */ - args.sigmask = curthread->sigmask; - args.sigpend = curthread->sigpend; - args.path = (char *)name; - args.argv = (char **)argv; - args.envp = (char **)envp; - args.reserved = NULL; - ret = kse_thr_interrupt(NULL, KSE_INTR_EXECVE, (long)&args); - } - - return (ret); + return __sys_execve(name, argv, envp); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411200503.iAK53bTV013557>