Commit ee4767f2 authored by Florian Pritz's avatar Florian Pritz
Browse files

nginx-zabbix: Exit forcefully



Test if this manages to kill the process. Closing $logfile doesn't seem
to be enough and tail + perl still continue running.
Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 8b8dfd9e
......@@ -22,8 +22,9 @@ my $logfile;
#$SIG{PIPE} = 'IGNORE';
$SIG{__DIE__} = sub {
print STDERR "Should be dying now\n";
close $logfile;
exit(2);
#close $logfile;
POSIX::_exit(2);
print STDERR "Called exit()\n";
};
sub trim {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment