From: Mathieu Bouchard Date: 2001-04-12T05:05:30+09:00 Subject: [ruby-talk:13607] Re: signal handling - trap is in non-interrupt context, right? On Thu, 12 Apr 2001, Colin Steele wrote: > When one hands a proc to trap, and the specified signal is caught, > does the proc run in interrupt context (in the UNIX sense)? > Ie., is it ok to do Ruby stuff in that trap proc which will result in > calls to non-rentrant UNIX functions? There are non-reentrant UNIX functions? I thought one of the key design principles of UNIX was that when an interrupt occurs during a system call, either the system call is completed first, or it is aborted, setting the EINTR error condition. Correct me if I'm wrong... matju