-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
At the moment, close is retried on EINTR.
Line 270 in f479829
| posix.EINTR => continue, |
On many operating systems, you shouldn't do this. e.g. From linux man page:
In particular close() should not be retried after an EINTR since this may cause a reused descriptor from another thread to be closed.
If my earlier research is correct:
- HP-UX you try again
- Linux, Solaris and AIX you don't want to retry again
- OSX is ill-defined and hence unsafe, you should use
close_nocancelinstead and not try again.
Related links:
andrewrk and jorangreef
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.