Subject: | umask for stdin/out/err and pid files |
Date: | Wed, 25 Feb 2015 22:25:12 +0000 |
To: | "bug-Proc-Daemon [...] rt.cpan.org" <bug-Proc-Daemon [...] rt.cpan.org> |
From: | Cyrille Mastchenko <CMastchenko [...] m-x.ca> |
I made is change at line 158 of Daemon.pm :
umask($self->{file_umask} || 066);
so we can pass the wanted umask at the Proc::Daemon->new call.
That way we can set a specific umask for those file,
I did a quick umask fix in an old Daemon.pm version and was happy when
I saw your update, however 066 is too strong for our application.
We keep the same 022 umask for the pid and std... files as for our other application files.
Cyrille
-----------------------------------------------------------------
Cyrille Mastchenko, RHCE
Systems and Application Administrator
TMX Group
Phone: +1 (514) 787-6655
Cell: +1 (438) 995-9308
Email: CMastchenko@m-x.ca<mailto:jeremy.young@tmx.com>
Avis de confidentialité :
L'information contenue dans ce message électronique ainsi que dans les fichiers qui peuvent y être attachés est de nature confidentielle et destinée à l'usage exclusif du destinataire. Si ce message vous est parvenu par erreur ou que vous n'êtes pas le destinataire visé, vous êtes par la présente avisé que tout usage, copie ou distribution de l'information contenue dans ce message est strictement interdit et vous êtes prié d'en aviser l'expéditeur et de détruire ce message.
Confidentiality Notice :
The information in this e-mail or in any file attached thereto is confidential and is intended solely for the addressee. If this e-mail is mistakenly sent to you or if you are not the intended recipient, you are hereby advised that any use, copying or distribution of any information contained in this message is strictly forbidden and you are requested to inform the sender of such error and to destroy this message.