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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to