Also attaching the bash script that I used to test this, which simulates
a process taking a long time on SIGTERM without forking.. it *should*
work with sleep too, given the sendsigs change I posted, but when that
change is not there.. sendsigs kills the sleeps and ruins all the fun.

Below is the upstart job I used to run it. I tested this on lucid,
10.04.1, and without the sendsigs change, the script would continue to
run right up to the umounts and beyond despite having been "stopped".
With the sendsigs change to wait, the test script would be sent SIGKILL
well before the end of the halt.

start on filesystem and net-device-up
stop on runlevel [016]

console output

kill timeout 20

exec /home/clint/test_dies_slowly.bash


** Attachment added: "test_dies_slowly.bash"
   
https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/688541/+attachment/1767468/+files/test_dies_slowly.bash

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.1 in ubuntu.
https://bugs.launchpad.net/bugs/688541

Title:
  race condition on shutdown (leads to corrupted fs)

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to