aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmbsyncloop3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbsyncloop b/mbsyncloop
index cb77303..0da9179 100755
--- a/mbsyncloop
+++ b/mbsyncloop
@@ -32,13 +32,12 @@ mkfifo($pw_pipe, 0700) or die "couldn't create $pw_pipe: $!";
$pid = fork;
die "fork failed: $!" unless defined $pid;
if (!$pid) {
- $SIG{PIPE} = sub {};
+ $SIG{PIPE} = 'IGNORE';
while (1) {
open my $fh, '>', $pw_pipe or die "couldn't open $pw_pipe";
$fh->print("$pw\n");
close $fh;
}
- exit;
}
my $last_all = 0;