-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
n.kill(19) throws error #9519
Comments
That is my (perhaps poor) understanding. |
Again, can you please ask these general support questions at https://github.com/nodejs/help. |
This is a doc bug (besides being an implied reasonable feature request):
|
@ORESoftware use strings for now, or use |
@cjihrig yeah np, this seemed like a more serious one though. Seems like it would be very easy to support numbers as well as strings, very unexpected. |
@ORESoftware apologies. It looks like you had a valid bug report. |
@ORESoftware any interest in PRing numeric signal support? And/or the doc fixes? I'll be able to review or merge, but I won't have time to implement this week, someone else may pick them up, but if you have time and interest in contributing to the project, these are good first contributions. |
Yeah I could give that a shot On Nov 9, 2016 11:06 AM, "Sam Roberts" [email protected] wrote:
|
I don't mean to step on any toes, but I took a cut at this. I've been looking for something to get my feet wet and this seemed easy enough. Your feedback is greatly appreciated. |
@sam-github Should this stay open? |
I think this is fixed by #10423 |
On versions 6 and 7 of Node.js
when I started a child process with
const n = require('child_process').spawn
if I try,
n.kill(19)
, I get an error saying the signal is not recognizedbut 19 is a valid signal
http://stackoverflow.com/questions/9951556/why-number-9-in-kill-9-command-in-unix
I would expect it to work
if I do
n.kill('SIGSTOP')
, it seems to work.Can we (not) use numbers/integers with n.kill()?
The text was updated successfully, but these errors were encountered: