2014-05-25 Junichi Satoh <junichi@rworks.jp>

* lib/PandoraFMS/Tools.pm: Fixed STD* file open error.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10002 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2014-05-25 06:53:00 +00:00
parent 844b099c7d
commit a261e0df6f
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2014-05-25 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Fixed STD* file open error.
2014-05-22 Ramon Novoa <rnovoa@artica.es> 2014-05-22 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm, * lib/PandoraFMS/NetworkServer.pm,

View File

@ -254,9 +254,9 @@ sub ascii_to_html($) {
sub pandora_daemonize { sub pandora_daemonize {
my $pa_config = $_[0]; my $pa_config = $_[0];
open STDIN, '$DEVNULL' or die "Can't read $DEVNULL: $!"; open STDIN, "$DEVNULL" or die "Can't read $DEVNULL: $!";
open STDOUT, '>>$DEVNULL' or die "Can't write to $DEVNULL: $!"; open STDOUT, ">>$DEVNULL" or die "Can't write to $DEVNULL: $!";
open STDERR, '>>$DEVNULL' or die "Can't write to $DEVNULL: $!"; open STDERR, ">>$DEVNULL" or die "Can't write to $DEVNULL: $!";
chdir '/tmp' or die "Can't chdir to /tmp: $!"; chdir '/tmp' or die "Can't chdir to /tmp: $!";
defined(my $pid = fork) or die "Can't fork: $!"; defined(my $pid = fork) or die "Can't fork: $!";
exit if $pid; exit if $pid;