Download raw body.
kill unreachable code in sys_execve()
After is no more process after calling exit1(). I see no point in this doubious code with a 0 return and a NOTREACHED comment. -- :wq Claudio diff --git kern/kern_exec.c kern/kern_exec.c index 76f4e70e2a6..e26183a3aa5 100644 --- kern/kern_exec.c +++ kern/kern_exec.c @@ -796,11 +796,6 @@ exec_abort: free_pack_abort: free(pack.ep_hdr, M_EXEC, pack.ep_hdrlen); exit1(p, 0, SIGABRT, EXIT_NORMAL); - - /* NOTREACHED */ - atomic_clearbits_int(&pr->ps_flags, PS_INEXEC); - - return (0); }
kill unreachable code in sys_execve()