IIRC, read(2) isn't safe to be called in a signal handler, but I'd have to look at one of Richard Stevens' books to be sure.
Can you just block signals or set a flag while you're doing the sysread? Or could you implement this as two processes communicating through shared memory?
In reply to Re: Async IO / signals
by sgifford
in thread Async IO / signals
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |