Your message dated Fri, 16 Dec 2022 17:52:15 +0100
with message-id <[email protected]>
and subject line Re: Bug#782540: dash: wait returns whenever a child process is
stopped/continued
has caused the Debian Bug report #782540,
regarding dash: wait returns whenever a child process is stopped/continued
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
782540: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782540
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dash
Version: 0.5.7-4+b1
Severity: normal
Control: affects -1 mysql-server-5.5
The wait builtin apparently returns immediately upon SIGCHLD, which
means it will return prematurely if a child is stopped or continued:
set +m
sleep 1000 &
wait
# This will return immediately if SIGSTOP is sent to the sleep process
wait
# This will return immediately if SIGCONT is sent to the sleep process
This "cmd & wait" pattern notably appears in the Debian version of
mysqld_safe (as a fix for #527623). Combined with a VPS that throttles
CPU usage via SIGSTOP/SIGCONT, this resulted in lots of hair-pulling on
my part.
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.16.0-4-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages dash depends on:
ii debianutils 4.4+b1
ii dpkg 1.17.25
ii libc6 2.19-17
dash recommends no packages.
dash suggests no packages.
-- debconf information excluded
--- End Message ---
--- Begin Message ---
Package: dash
Version: 0.5.11+git20200708+dd9ef66-1
As Herbert noted above, this is fixed in 0.5.11, and I can confirm this
bisecting on snapshot.d.o: 0.5.10.2-7 is the last bad version.
In bisecting on the git repository, commit
6c691b3e5099de380a9d2f97d5c72f4a978bb794 ("jobs: Only clear gotsigchld
when waiting for everything") is the first good one.
наб
signature.asc
Description: PGP signature
--- End Message ---