JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

os/proc-kill

core-api


    cfunction
    src/core/os.c on line 745, column 1

    (os/proc-kill proc &opt wait signal)

    Kill the subprocess `proc` by sending SIGKILL to it on POSIX 
    systems, or by closing the process handle on Windows. If `proc` has 
    already completed, raise an error. If `wait` is truthy, will wait 
    for `proc` to complete and return the exit code (this will raise an 
    error if `proc` is being waited for). Otherwise, return `proc`. If 
    `signal` is provided, send it instead of SIGKILL. Signal keywords 
    are named after their C counterparts but in lowercase with the 
    leading SIG stripped. `signal` is ignored on Windows.


0 examplesSign in to add an example
Loading...