fixed return value of signal

This commit is contained in:
ceriel 1989-02-08 09:29:27 +00:00
parent 04e2dac8e7
commit be89699a1a
2 changed files with 2 additions and 0 deletions

View file

@ -23,5 +23,6 @@ int (*func)(); /* pointer to function that catches signal */
M.m6_i1 = signr;
M.m6_f1 = ( (func == SIG_IGN || func == SIG_DFL) ? func : begsig);
r = callx(MM, SIGNAL);
if (r == 1) old = SIG_IGN;
return( (r < 0 ? (int (*)()) r : old) );
}

View file

@ -23,5 +23,6 @@ int (*func)(); /* pointer to function that catches signal */
M.m6_i1 = signr;
M.m6_f1 = ( (func == SIG_IGN || func == SIG_DFL) ? func : begsig);
r = callx(MM, SIGNAL);
if (r == 1) old = SIG_IGN;
return( (r < 0 ? (int (*)()) r : old) );
}