aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-05 16:01:54 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-07 19:03:15 -0500
commit476b1f43d073cc14f132198726aa453661e9d932 (patch)
tree7785213b26dac077de6130fd9fb338580f11859f
parente41f066e1002340f2df515becf8c310298e4c312 (diff)
downloadmbsyncloop-476b1f43d073cc14f132198726aa453661e9d932.tar.gz
mbsyncloop-476b1f43d073cc14f132198726aa453661e9d932.zip
cleanup
-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;