pthread - fork - execv problem

From: Chris Stenton (jacs_at_gnome.co.uk)
Date: 06/21/04

  • Next message: Oliver Fromme: "Re: /bin/ls sorting bug?"
    To: <threads@freebsd.org>
    Date: Mon, 21 Jun 2004 13:30:43 +0100
    
    

    I am trying to help port over an app thats posix threaded. One thread uses
    fork,dup2 and execv to start a child programme in this case an mp3 player.
    However, under FreeBSD-5.2.1, the execv causes all the threads in the parent
    process to be blocked until the child process returns. Is there a mechanism
    to get around this.

    Thanks

    Chris

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Oliver Fromme: "Re: /bin/ls sorting bug?"

    Relevant Pages

    • pthread - fork - execv problem
      ... fork and execv to start a child programme in this case an mp3 player. ... However, under FreeBSD-5.2.1, the execv causes all the threads in the parent ... process to be blocked until the child process returns. ...
      (freebsd-current)
    • Re: Problem with fork inside a thread and system()
      ... In my program I need to launch the "pppd" from a thread, so, I create ... a new process withforkand then in the child process I launch with ... father stuff..... ... Ok I Have tryed with execv: ...
      (comp.os.linux.development.apps)
    • Re: execv() terminates a program
      ... The Forker thread calls fork ... > function and then the child process calls execv() function. ...
      (comp.unix.programmer)
    • Re: Problem with fork inside a thread and system()
      ... I call execv from a child process created from a thread the pppd ... script fails!!!! ... On the other hand when I call execv from a process created from a fork ... Please read the FAQ on how to ask smart questions. ...
      (comp.programming.threads)
    • Re: Problem with fork inside a thread and system()
      ... In my program I need to launch the "pppd" from a thread, so, I create ... a new process withforkand then in the child process I launch with ... father stuff..... ... Ok I Have tryed with execv: ...
      (comp.os.linux.development.apps)