From bd48776a8a46df0f9c1ad56d40fde852e428eb0d Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 4 Aug 2008 01:43:34 +0000 Subject: [PATCH] wait for the parent proc to go away before we unlink the file git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1385 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/opensrf-perl.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/opensrf-perl.pl b/bin/opensrf-perl.pl index 3ab5f57..7211601 100755 --- a/bin/opensrf-perl.pl +++ b/bin/opensrf-perl.pl @@ -57,6 +57,7 @@ sub do_stop { if(-e $pid_file) { my $pid = `cat $pid_file`; kill('INT', $pid); + waitpid($pid, 0); unlink $pid_file; } else { msg("$service not running"); -- 2.11.0