Subj : fork & exec vs. system() in threads To : comp.programming.threads From : Snowbound in NE Date : Thu Jan 20 2005 02:13 am When I need to call an external executable from within a thread, and sometimes redirect stdout and stderr, what are the tradeoffs and/or pitfalls of using system(command_line); fork(); then execXX(...); on Solaris, AIX? There are *no* mutexes held at that point. I've seen some manuals that say something like ".. all threads a closed after the fork." I have taken out any code between fork() execXX(...) because Butenhof said it then will be OK. But, I've got something working, altho sometimes it cores out but I cannot find stepping-on memory happening. .