Skip to contentSkip to conversation

cr_tests/mq: wait for background tasks to exit

PATCH Applied Nathan Lynch 2 participants 2 messages Mar 4, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr_tests/mq: wait for background tasks to exit

Ensure the background process that has been checkpointed has exited before proceeding with restart.

---
 ipc/test-mq.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
ipc/test-mq.sh +1 -0
index fc5343e..aa5227c 100644
@@ -29,6 +29,7 @@ do_checkpoint() {
 	${CHECKPOINT} $pid > ckpt.msq
 	thaw
 	killall check-mq
+	wait
 }
 
 echo "XXX Test 1: simple restart with SYSVIPC msq"
Signature · 1 line
1.6.0.6
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Nathan Lynch

Ensure the background process that has been checkpointed has exited before proceeding with restart.

Applied, thanks.

Quoted 18 lines
---
 ipc/test-mq.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
ipc/test-mq.sh +1 -0
index fc5343e..aa5227c 100644
@@ -29,6 +29,7 @@ do_checkpoint() {
 	${CHECKPOINT} $pid > ckpt.msq
 	thaw
 	killall check-mq
+	wait
 }
 
 echo "XXX Test 1: simple restart with SYSVIPC msq"
Signature · 1 line
1.6.0.6