diff --git a/basis/unix/process/process.factor b/basis/unix/process/process.factor index 4b33c37d07..1e9129af58 100644 --- a/basis/unix/process/process.factor +++ b/basis/unix/process/process.factor @@ -36,8 +36,7 @@ FUNCTION: int execve ( c-string path, c-string* argv, c-string* envp ) ; [ [ first ] [ ] bi ] dip exec-with-env ; : with-fork ( child parent -- ) - [ [ fork-process dup zero? ] dip '[ drop @ ] ] dip - if ; inline + [ fork-process ] 2dip if-zero ; inline CONSTANT: SIGKILL 9 CONSTANT: SIGTERM 15