[Patches] signal module patch for GNU pth support
Andy Dustman
adustman@comstar.net
Thu, 11 May 2000 17:55:22 -0400 (EDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---187888452-1685517700-958082122=:8382
Content-Type: TEXT/PLAIN; charset=US-ASCII
Since GNU pth runs in user-space in a single process, (getpid() ==
main_pid) is always true, and so signal_handler check the thread id and
use pth_raise() to send the signal to the main thread if another thread
was running when the signal arrived.
NOTE: pth-1.3.5 currently has a bug (IMHO) in that pth_sleep()
(replacement for POSIX sleep()) is not awakened by signals. The severity
of the bug depends on how long you were sleeping... This has been
reported.
--
andy dustman | programmer/analyst | comstar.net, inc.
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage,
come no further, for death awaits you all, with nasty, big, pointy teeth!"
---187888452-1685517700-958082122=:8382
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=signalmodule-pth-patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0005111755220.8382@kenny.comstar.net>
Content-Description:
Content-Disposition: attachment; filename=signalmodule-pth-patch
SW5kZXg6IE1vZHVsZXMvc2lnbmFsbW9kdWxlLmMNCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0NClJDUyBmaWxlOiAvcHJvamVjdHMvY3Zzcm9vdC9weXRob24v
ZGlzdC9zcmMvTW9kdWxlcy9zaWduYWxtb2R1bGUuYyx2DQpyZXRyaWV2aW5n
IHJldmlzaW9uIDIuMzkNCmRpZmYgLWMgLXIyLjM5IHNpZ25hbG1vZHVsZS5j
DQoqKiogc2lnbmFsbW9kdWxlLmMJMTk5OC8xMi8yMSAxOTozMjozOQkyLjM5
DQotLS0gc2lnbmFsbW9kdWxlLmMJMjAwMC8wNS8xMSAyMTo0Njo1Nw0KKioq
KioqKio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