From 35c4aba3471691685592547300ca5bb588adeb53 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 16 Mar 2023 18:01:43 +0100 Subject: fixed zombie leaks --- lib/JWebmail/Model/ReadMails/QMailAuthuser.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm b/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm index e16e2f2..311860c 100644 --- a/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm +++ b/lib/JWebmail/Model/ReadMails/QMailAuthuser.pm @@ -232,11 +232,13 @@ sub read_qmauth { $rc = 6; $e = "$@"; }; - $reader->read(my $buf, 4 * 1024**2); + $reader->read(my $buf, 32 * 1024**2); if (!eof $reader) { - die 'mailpart too large (>4MB)' + die 'mailpart too large (>32MB)'; + kill 'TERM', $pid; } close $reader; + waitpid $pid, 0; $resp = { head => $r, body => $buf, -- cgit v1.2.3