summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-03-16 18:01:43 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-03-16 18:01:43 +0100
commit35c4aba3471691685592547300ca5bb588adeb53 (patch)
treec71594624c68e3d2303f53ca78ce74273daeffca /lib
parent41a0a69ba25b46797b8fbc93a2035ed257b72999 (diff)
fixed zombie leaks
Diffstat (limited to 'lib')
-rw-r--r--lib/JWebmail/Model/ReadMails/QMailAuthuser.pm6
1 files changed, 4 insertions, 2 deletions
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,