From f06189cd4bdeddf10a0687577505c5bf219c200e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 8 Feb 2022 02:04:28 -0500 Subject: fix busy loop not sure why, but --- bin/mbsyncloop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mbsyncloop b/bin/mbsyncloop index 8399d36..fba66fd 100755 --- a/bin/mbsyncloop +++ b/bin/mbsyncloop @@ -48,10 +48,10 @@ die "fork failed: $!" unless defined $pw_pid; if (!$pw_pid) { $SIG{PIPE} = 'IGNORE'; setpgrp(0, 0); - open my $fh, '>', $pw_pipe or die "couldn't open $pw_pipe"; while (1) { + open my $fh, '>', $pw_pipe or die "couldn't open $pw_pipe"; $fh->print("$pw\n"); - $fh->flush; + close $fh; } } -- cgit v1.2.3