diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-02-05 16:01:54 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-02-07 19:03:15 -0500 |
commit | 476b1f43d073cc14f132198726aa453661e9d932 (patch) | |
tree | 7785213b26dac077de6130fd9fb338580f11859f | |
parent | e41f066e1002340f2df515becf8c310298e4c312 (diff) | |
download | mbsyncloop-476b1f43d073cc14f132198726aa453661e9d932.tar.gz mbsyncloop-476b1f43d073cc14f132198726aa453661e9d932.zip |
cleanup
-rwxr-xr-x | mbsyncloop | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |