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:
parent
844b099c7d
commit
a261e0df6f
|
@ -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>
|
||||
|
||||
* lib/PandoraFMS/NetworkServer.pm,
|
||||
|
|
|
@ -254,9 +254,9 @@ sub ascii_to_html($) {
|
|||
|
||||
sub pandora_daemonize {
|
||||
my $pa_config = $_[0];
|
||||
open STDIN, '$DEVNULL' or die "Can't read $DEVNULL: $!";
|
||||
open STDOUT, '>>$DEVNULL' or die "Can't write to $DEVNULL: $!";
|
||||
open STDERR, '>>$DEVNULL' or die "Can't write to $DEVNULL: $!";
|
||||
open STDIN, "$DEVNULL" or die "Can't read $DEVNULL: $!";
|
||||
open STDOUT, ">>$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: $!";
|
||||
defined(my $pid = fork) or die "Can't fork: $!";
|
||||
exit if $pid;
|
||||
|
|
Loading…
Reference in New Issue