-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
std.os: don't always retry close() on EINTR #2425
Copy link
Copy link
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
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.
At the moment,
closeis retried onEINTR.zig/std/os.zig
Line 270 in f479829
On many operating systems, you shouldn't do this. e.g. From linux man page:
If my earlier research is correct:
close_nocancelinstead and not try again.Related links: