exit if $quit++;
kill_workers($s);
} elsif ($s eq 'WINCH') {
- if (-t STDIN || -t STDOUT || -t STDERR) {
+ if ($daemonize) {
+ $worker_processes = 0;
+ } else {
warn
-"ignoring SIGWINCH while connected to terminal\n";
+"ignoring SIGWINCH since we are not daemonized\n";
$SIG{WINCH} = 'IGNORE';
- } else {
- $worker_processes = 0;
}
} elsif ($s eq 'HUP') {
$worker_processes = $set_workers;