-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
umask under MSWIN #49
Comments
I recommend a removal of umask from the list of builtins that autodie protects. @pjf : Comments to this? If not, I will prepare a branch for removing umask as an autodie (and Fatal) protected function. Rationale: Reading the umask documentation and playing a bit with it, it seems umask always returns a defined value regardless of input on Linux. I suspect the only case it does return undef is on systems without umask (and only in the conditions quoted above from perldoc). If this case is not to be considered a failure, then there is nothing left for autodie/Fatal to do. |
I concur. It sounds like at best autodie does nothing, and at worst it make things worse. Pinging @rjbs since autodie periodically makes its way into core, but I doubt this would cause any problems. |
For the record, if we are going to remove umask, we should probably bundle the "kill" (issue #47) and the "fileno" (CPAN RT#75199) as well. |
I have no reaction whatsoever to the suggested umask change. So I think it's fine. :) |
@rjbs: Ok, thanks for commenting. :) |
From perldoc:
So, under MSWIN 'undef' is a legal value, not an error, and autodie shouldn't die.
The text was updated successfully, but these errors were encountered: