Ian Lance Taylor <ian(at)airs(dot)com> writes:
> What you really want, of course, is a version of select which lets you
> atomically control the signal blocking mask.
Yeah, that would be a much cleaner solution. Someday pselect() may even
be portable enough ...
regards, tom lane