Skip to content
Snippets Groups Projects
Commit d7daf665 authored by georgeto's avatar georgeto
Browse files

Disable buffering of stdout when running in foreground mode

Avoids output delays when poolmon runs in as a systemd service.
parent 30ba8c07
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,11 @@ if (@SSL_PORTS) {
check_pidfile();
unless($NOFORK){
daemonize();
} else {
# Disable buffering of stdout when running in foreground mode
my $ofh = select STDOUT;
$| = 1;
select $ofh;
}
while(1){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment