[Psi-devel] new systemwatch_unix
Remko Tronçon
remko at el-tramo.be
Tue Jul 3 05:52:59 PDT 2007
> I wrote SystemWatch for unix class, which enables posibility of
> disconnecting on hibernate with standard unix signals. I'm now sure how
> standard behaviour it is, but it doesn't conflict with rest of the
> system. I decided to use SIGUSR1 (user-defined signal 1) and
> SIGPWR(power failure) on suspend and SIGUSR2 (user-defined signal 1),
> SIGIO (I/O now possible) and SIGURG (high bandwidth data is available)
> on resume.
Thanks.
Now that I see the code, I noticed that someone wrote this patch
before. We didn't commit it at the time, because 'SIGUSR' doesn't
sound like 'The signal emitted on sleep on all Unices', but rather 'A
custom signal, which happens to be the one emitted on sleep on a few
platforms'. Is this the signal used on all unices to signal sleep? And
why is it called SIGUSR? Is there really no *real* signal?
cheers,
Remko
More information about the psi-devel
mailing list