Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Pass data to a subprocess

Thread Tools

Re: Pass data to a subprocess

andrea crotti
Posts: n/a
2012/8/1 Laszlo Nagy <(E-Mail Removed)>:
> 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)
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Pass data to a subprocess Laszlo Nagy Python 0 07-31-2012 02:46 PM
Re: Pass data to a subprocess andrea crotti Python 0 07-31-2012 02:12 PM
Pass data to a subprocess andrea crotti Python 0 07-31-2012 01:56 PM
how to import subprocess into my '' file hiral Python 2 05-05-2010 12:56 PM
[Subprocess/Windows] subprocess module under Windows 98 Andreas Jung Python 2 11-02-2005 05:41 PM