You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the macOS manpage:
> Upon successful completion, a value of 0 is returned. Otherwise, a value
> of -1 is returned and the global integer variable errno is set to
> indicate the error.
I'm not certain whether the existing code may be there for cross-platform support, so I changed it to check for -1 and only then consult the global `errno`. This should preserve existing behavior if there's a cross-platform angle here.
rdar://117861543
0 commit comments