Fixed race conditions and other problems with fifo removal.
Fixed race conditions and other problems with fifo removal.

smallredbean/pgctl,Yelp/pgctl,smallredbean/pgctl,smallredbean/pgctl,Yelp/pgctl,Yelp/pgctl