Skip to content

Instantly share code, notes, and snippets.

@gustavoanatoly
Created October 17, 2012 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavoanatoly/3906937 to your computer and use it in GitHub Desktop.
Save gustavoanatoly/3906937 to your computer and use it in GitHub Desktop.
Kill Signal
VALUE
rb_f_kill(int argc, VALUE *argv)
{
/*............................................. */
/* line 389 */
if (sig < 0) {
sig = -sig;
for (i=1; i<argc; i++) {
if (killpg(NUM2PIDT(argv[i]), sig) < 0)
rb_sys_fail(0);
}
}
else {
for (i=1; i<argc; i++) {
/**
* Error line here
*/
if (kill(NUM2PIDT(argv[i]), sig) < 0)
rb_sys_fail(0);
}
}
/*............................................. */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment