Re: [AD] errno = EINTR troubles - any unix experts? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 16 September 2002 10:18, Vincent Penquerc'h wrote:
> So, I'd say feel free to add such recovery code where it seems to
> be needed. But that's a gut feeling comforted by previous experience
> only, not a definitive "known correct" solution.
To follow your post up, you could either:
- add protection for EINTR using the do {} while() construct I gave
earlier. This should be added to *every* system call.
- if you are using glibc, then #define _GNU_SOURCE in allegro.h and
I think that will fix it.
Also, EAGAIN only occurs when you try to fork/create a thread but there
are not enough processes left, or when you a trying to perform a
blocking operation on a non-blocking file descriptor. I don't know that
we need EAGAIN protection, but I suppose it could be useful in the
pthreads driver.
Bye for now,
- --
Laurence Withers, lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9hb6XUdhclgSmRuoRAm3aAKCgw1L1zTSJBk4v1OSsgerAX0m1bQCeKUYM
zZCgOTIvw6irqreKw0G+kEU=
=/UwU
-----END PGP SIGNATURE-----