[GB.SIGNAL]
* BUG: Raise an error instead of panicking when trying to catch the SIGKILL or SIGSTOP signal. git-svn-id: svn://localhost/gambas/trunk@7039 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
5005639874
commit
9180e0b643
1 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,12 @@ static void handle_signal(int num, char state)
|
|||
}
|
||||
else if (state == SH_CATCH)
|
||||
{
|
||||
if (num == SIGKILL || num == SIGSTOP)
|
||||
{
|
||||
GB.Error("SIGKILL and SIGSTOP cannot be catched");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_init_signal)
|
||||
init_signal();
|
||||
|
||||
|
|
Loading…
Reference in a new issue