Bug#1037917: gnutls28: leaves processes running after build: gnutls-serv, openssl s_server
Andreas Metzler
ametzler at bebt.de
Sun Jun 18 13:32:43 BST 2023
On 2023-06-14 Andreas Metzler <ametzler at bebt.de> wrote:
> On 2023-06-14 Andreas Beckmann <anbe at debian.org> wrote:
[...]
> > after building gnutls28/experimental with pbuilder, there are a lot of
> > gnutls-serv and a few openssl s_server processes running, preventing
> > pbuilder to cleanup the chroot.
> This was caused by the changes related to fixing #1031553 (supporting
> either datefudge or faketime.
The reasons for breakage are twofold:
when using a wrapper shell-function instead of an executable like this:
wrapme() {
foo "$@"
}
This kind of code breaks
wrapme server &
PID=$!
...
kill $PID
since PID will contain the process ID of the currently running script
instead of "foo server".
The second one is a similar one. While
datefudge ... server
gives you one process - the server one (datefudge is a shell script
which sets some environment variables and exec-s the a binary.) OTOH
faketime ... server
starts a faketime process and a forked "server" as child process and
killing faketime does not kill the child process (Reported as
https://github.com/wolfcw/libfaketime/issues/428 ). This also breaks the
idiom mentioned above.
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
More information about the Pkg-gnutls-maint
mailing list