[fpc-devel]promised tthread patch

Johannes Berg johannes at sipsolutions.de
Tue Nov 18 10:51:11 CET 2003

> .... under FreeBSD it fails. Probably due to the pipe trick
> I'm still investigating.

Weird, the pipe trick should be very portable, unless there are signals
Try changing the
fpread(...) to

// pseudo code:
if fpread(...) = -1 then
not_signalled := errno = EINTR;
not_signalled := true;
until not_signalled;

and hope the loop doesn't get tight. but fpread should block in any case


More information about the fpc-devel mailing list