10-03-04 02:13 AM
zuheyr alsalihi wrote:
> Dear Kevin.
>
> Thnk you! Such a scheme indeed works, but there are
> two things that worry me:
>
> 1-When stopping a program, where does it continue when
> I continue it...? How can I assure that it will continue from
> a given fixed point!?
Signals are like user controlled interrupts. When the SIGSTOP is received,
the program is interrupted doing whatever it was doing and executes the
SIGSTOP handler, which can only do one thing as it cannot be changed from
its default behaviour: stop the process running at that point. When the
SIGCONT is received, the default behaviour for that handler is for the
process to then resume from the point at which it was stopped.
[ Post a follow-up to this message ]
|