Closed MichaelChirico closed 1 year ago
Copied the approach here:
https://github.com/r-lib/later/blob/bc088f896acbd09f0fde1a78e7f056ec18aadea8/src/later_posix.cpp#L54
OTOH, if write() fails, presumably that'll be captured in this value & we should cascade that? I don't know write() well enough but I'd guess if (!ret) ... would be better.
write()
if (!ret) ...
I'm not sure why the Github Action workflow isn't running, but I'll merge and let it run on main.
Copied the approach here:
https://github.com/r-lib/later/blob/bc088f896acbd09f0fde1a78e7f056ec18aadea8/src/later_posix.cpp#L54
OTOH, if
write()
fails, presumably that'll be captured in this value & we should cascade that? I don't knowwrite()
well enough but I'd guessif (!ret) ...
would be better.