diff options
author | Eric Wong <e@80x24.org> | 2021-01-24 22:41:58 -0800 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-26 18:51:31 +0000 |
commit | da86f10a548d4cce25f91bb4063f82ecbbe441a1 (patch) | |
tree | e19b26c90c73a05fd08f5f9796fb5fcb57563200 /lib/PublicInbox/Watch.pm | |
parent | 99d3f175072a8ef062ba6335a3ceb267ba89c12b (diff) | |
download | public-inbox-da86f10a548d4cce25f91bb4063f82ecbbe441a1.tar.gz |
Mainly around fork() calls, but some nearby places as well.
Diffstat (limited to 'lib/PublicInbox/Watch.pm')
-rw-r--r-- | lib/PublicInbox/Watch.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm index 1de5018d..2b44ba43 100644 --- a/lib/PublicInbox/Watch.pm +++ b/lib/PublicInbox/Watch.pm @@ -626,7 +626,7 @@ sub imap_idle_fork ($$) { my ($url, $intvl) = @$url_intvl; pipe(my ($r, $w)) or die "pipe: $!"; my $seed = rand(0xffffffff); - defined(my $pid = fork) or die "fork: $!"; + my $pid = fork // die "fork: $!"; if ($pid == 0) { srand($seed); eval { Net::SSLeay::randomize() }; |