Commit 832ec1cd authored by Sam Roberts's avatar Sam Roberts Committed by Fedor Indutny
Browse files

process: throw TypeError if kill pid not a number



Currently, invalid usage such as:

    process.kill('SIGTERM')
    process.kill(null)
    process.kill(undefined);

all coerce the pid to 0, and signal the current process.

Signed-off-by: default avatarFedor Indutny <fedor@indutny.com>
parent 9a63a1d8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment