Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26343

Re: Pass data to a subprocess

References (2 earlier) <5017EFB0.6080608@shopzeus.com> <CAF_E5JaEHxsjKoHRhZLzh+YdPU8UqKHae9efCsP7zEvm_37+2w@mail.gmail.com> <5018E687.9000105@shopzeus.com> <CAF_E5Jb83D6Uk-HG0sq5urTfxh6z9_fw+RR2ZEmesWTjEFR4-A@mail.gmail.com> <50190215.7080608@shopzeus.com>
Date 2012-08-01 11:32 +0100
Subject Re: Pass data to a subprocess
From andrea crotti <andrea.crotti.0@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2814.1343817179.4697.python-list@python.org> (permalink)

Show all headers | View raw


2012/8/1 Laszlo Nagy <gandalf@shopzeus.com>:
> On thing is sure: os.fork() doesn't work under Microsoft Windows. Under
> Unix, I'm not sure if os.fork() can be mixed with
> multiprocessing.Process.start(). I could not find official documentation on
> that.  This must be tested on your actual platform. And don't forget to use
> Queue.get() in your test. :-)
>

Yes I know we don't care about Windows for this particular project..
I think mixing multiprocessing and fork should not harm, but probably
is unnecessary since I'm already in another process after the fork so
I can just make it run what I want.

Otherwise is there a way to do same thing only using multiprocessing?
(running a process that is detachable from the process that created it)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Pass data to a subprocess andrea crotti <andrea.crotti.0@gmail.com> - 2012-08-01 11:32 +0100

csiph-web