public
Created

Kill Signal

  • Download Gist
signal.c
C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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);
}
}
/*............................................. */
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.