fork and exec in mutithread program problem

From: David Medeiros (dmedeiros_at_broadbus.com)
Date: 07/25/03


Date: Fri, 25 Jul 2003 17:56:40 GMT

Hi,

I'm having a problem in my multi-threaded application where I fork() a child
process and when the child process calls execl(), the execl() appears to
hang and most of my applications threads have disappeared (according to ps).
I take the same routine that does all this (fork & execl) and make a
standalone (single threaded) application out of it, and everything works
fine. I can only assume my problem has something to do with having threads
running.
Has anyone else run into this problem? I'm running Red Hat linx 8.0.

Thanks in Advance!

Dave M
dmedeiros@broadbus.com



Relevant Pages

  • Re: fork and exec in mutithread program problem
    ... > I'm having a problem in my multi-threaded application where I fork() a child ... > process and when the child process calls execl(), ... I'm running Red Hat linx 8.0. ...
    (comp.os.linux.development.apps)
  • Re: Starting an external application from C++
    ... However on Solaris it seems that execl must be acting differently. ... The spawned application gets a pid which is 1 higher then the child process ... that you can find out where the extra fork is coming from. ...
    (comp.unix.programmer)
  • Re: Interpreters
    ... However, after reading the documentation, the two most likely commands for ... But there was a note saying that fork() is ... And execl() creates a new process, ... Windows, ...
    (comp.lang.tcl)
  • Re: Starting an external application from C++
    ... OSX. ... However on Solaris it seems that execl must be acting differently. ... The spawned application gets a pid which is 1 higher then the child process ...
    (comp.unix.programmer)
  • Re: utilizing multiple CPUs
    ... In the *nix world use Tclx, fork, execl and wait. ... In the windows world you could look at twapi. ...
    (comp.lang.tcl)