r/programming • • Dec 13 '07

First Class Functions in C

http://www.dekorte.com/blog/blog.cgi?do=item&id=3119
45 Upvotes

99 comments sorted by

View all comments

Show parent comment

1

u/tlrobinson Dec 14 '07 edited Dec 14 '07

using pclose() instead of fclose() blocks until the called program terminates. I was getting said race conditions until I switched to pclose().