Discussion:
Handling SIGKILL
(too old to reply)
Daniel Ramsbrock
2005-09-23 00:53:31 UTC
Permalink
When Sys_Kill gets called with signal number = 1 (SIGKILL), which of
these two is the expected behavior?

1. Kill the target process immediately as in project 1 (i.e. just call
the existing kill code from p1) OR
2. Set a flag as with the other signals, and then have the target
process terminate itself via Exit() when it resumes execution (i.e. same
behavior as if a signal without a registered handler is sent--which
results in Def_Handler being called, which in turn calls Exit)

I'm thinking you'd want behavior 1, but I'm just making sure. Thanks,

Daniel
Adel Youssef
2005-09-25 03:22:54 UTC
Permalink
1. Kill the target process immediately as in project 1
Post by Daniel Ramsbrock
When Sys_Kill gets called with signal number = 1 (SIGKILL), which of
these two is the expected behavior?
1. Kill the target process immediately as in project 1 (i.e. just call
the existing kill code from p1) OR
2. Set a flag as with the other signals, and then have the target
process terminate itself via Exit() when it resumes execution (i.e. same
behavior as if a signal without a registered handler is sent--which
results in Def_Handler being called, which in turn calls Exit)
I'm thinking you'd want behavior 1, but I'm just making sure. Thanks,
Daniel
Loading...