Changelog
+Daniel (13 January 2006)
+- Andrew Benham fixed a race condition in the test suite that could cause the
+ test script to kill all processes in the current process group!
+
Daniel (12 January 2006)
- Michael Jahn:
This release includes the following bugfixes:
+ o test suite kill race condition
o FTP_SKIP_PASV_IP and FTP_USE_EPSV when doing FTP over HTTP proxy
o Doing a second request with FTP on the same bath path, would make libcurl
confuse what current working directory it had
advice from friends like these:
Dov Murik, Jean Jacques Drouin, Andres Garcia, Yang Tse, Gisle Vanem, Dan
- Fandrich, Alexander Lazic, Michael Jahn
+ Fandrich, Alexander Lazic, Michael Jahn, Andrew Benham
Thanks! (and sorry if I forgot to mention someone)
open(PID, "<$pidfile");
$pid2 = 0 + <PID>;
close(PID);
- if(kill(0, $pid2)) {
- # make sure this pid is alive, as otherwise it is just likely
- # to be the _previous_ pidfile or similar!
+ if($pid2 && kill(0, $pid2)) {
+ # if $pid2 is valid, then make sure this pid is alive, as
+ # otherwise it is just likely to be the _previous_ pidfile or
+ # similar!
last;
}
}