github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
brrt \o 09:16
nwc10 o/ 09:19
brrt ohai nwc10 09:25
pamplemousse o/ 11:56
brrt \o pamplemousse 11:58
ugexe hmm so close() can return EINTR 19:30
same with open
but syncfile.c doesn't appear to handle those cases
libuv's uv_fs_open|close doesn't either 19:33
The close call was interrupted by a signal. See Interrupted Primitives. Here is an example of how to handle EINTR properly:
TEMP_FAILURE_RETRY (close (desc));
nwc10 although I was surprised, so went for a read, and the linux man page also says 19:34
Note that the return value should only be used for diagnostics. In
particular close() should not be retried after an EINTR since this may
cause a reused descriptor from another thread to be closed.
ugexe news.ycombinator.com/item?id=20218924 -- this is why i started looking around
definitely seems retrying on EINTR on linux is not what one should do lwn.net/Articles/576478/ 19:38