small fix in sigvec
This commit is contained in:
parent
b536454c5b
commit
f63363cfb8
|
@ -29,7 +29,7 @@ sigvec(sig,vec,ovec)
|
||||||
_sigfunc[sig] = old;
|
_sigfunc[sig] = old;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (ovec->handler == _sigtramp) {
|
if (ovec && ovec->handler == _sigtramp) {
|
||||||
ovec->handler = old;
|
ovec->handler = old;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue