Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popen and thread intereference

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I've used popen() in some software I'm working on to see if this current multi-threaded project is already running. In itself it works fine. The problem comes when I start to kick off the threads. It never makes it past the first thread, with 6 left to go. If I take out the popen code it works fine.

Anyone have any idea if popen is known to affect multi-threaded programs. It's supposed to be multi-thread safe, but I'm not so sure...

Tony
 
Finally figured it out. All I had to do was fork() the process to detach it from the terminal. Works like a charm now :)

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top