#949992 Does not take subprocess down when killed

Package:
mailcap
Source:
mailcap
Submitter:
martin f krafft
Date:
2020-11-14 04:57:05 UTC
Severity:
normal
Tags:
#949992#3
Date:
2020-01-28 06:54:45 UTC
From:
To:
When run-mailcap is killed (e.g. SIGTERM), the subprocess it spawned
according to mailcap is left alive. This is due to the use of the
system(3perl) call. Quite frankly, I think exec() should be used
instead, as there is no purpose in leaving run-mailcap around.
However, if that is not possible, please make sure that the
subprocesses are killed when run-mailcap is killed.

#949992#8
Date:
2020-01-28 10:38:27 UTC
From:
To:
Le Tue, Jan 28, 2020 at 07:54:45PM +1300, martin f krafft a écrit :

Hi Martin,

would you have a chance to test this change on your system and submit a
patch ?

Have a nice day,

#949992#15
Date:
2020-01-28 21:40:10 UTC
From:
To:
tags 949992 +patch
kthxbye

Attached is a patch. Warning, I'm not a Perl-coder. Seems to work
though.