-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/29/10 18:36 , Bryan O'Sullivan wrote: > On Sat, Nov 27, 2010 at 9:05 PM, wren ng thornton <w...@freegeek.org > <mailto:w...@freegeek.org>> wrote: > > So I've just started playing around with STM and -threaded programs and > I've run into a bug. The bug is similar to [1] except that the file in > question is a Posix FIFO instead of a Bluetooth device. Same behavior: > always errors with -threaded, but expected behavior when not -threaded > (i.e., blocks until another process opens the other end of the FIFO). > GHC version is 6.12.1. > > Isn't that pretty normal? Just retry if you get EINTR, that's what > throwErrnoIfMinus1 and friends are for:
The problem is the interrupting signal is the timer interrupt used by the runtime system; this should not be visible to user programs, instead the runtime should *itself* restart the operation. - -- brandon s. allbery [linux,solaris,freebsd,perl] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkz5Uv4ACgkQIn7hlCsL25UOLACgz85SXrIH54c5zVZHot0FTzqW Z9cAoKa6ViYVrT4U5PaYwVF34oM6lahv =o2md -----END PGP SIGNATURE----- _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users