[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:
Benoît Minisini 2015-04-15 17:17:50 +00:00
parent 5005639874
commit 9180e0b643

View file

@ -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();