[zeromq-dev] Fork/exec problem

Martin Hurton hurtonm at gmail.com
Thu Jul 16 22:54:16 CEST 2009


Hi Conrad,

Could you please prepare a minimal program that we could use to
reproduce this behavior? Thanks.

Regards,
- Martin

On Thu, Jul 16, 2009 at 10:41 PM, Conrad
Steenberg<conrad.steenberg at gmail.com> wrote:
> Hi,
>
> I'm running into an interesting problem in my code which uses
> forks/execs a worker process:
>
> If I instantiate a zmq::dispatcher_t dispatcher, the child seems to have
> a closed stdin, which is normally used for parent/child communication.
>
> (FWIW the child does a fileno(stdin) where the latter is NULL).
>
> Any idea why this might happen? Changes to default flags for the clone()
> syscall?
>
> If I remove references to the dispatcher everything is fine.
>
> Thanks!
> Conrad
>
>
>
> --
> -----------------------------------------------------------------------------
> Conrad D. Steenberg Ph.D.            conrad.steenberg at caltech.edu
> Scientific Software Engineer         http://www.nupack.org
> Pierce Bioengineering Lab            Mail Code 114-96
> California Institute of Technology   Pasadena, CA, 91125
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list