Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
[2.4.2/Linux] Getting Python to fork?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gary Herron, post: 3430073"] What OS? Stuck how? I you want both processes to execute, why do you call sys.exit? I don't think you've shown enough code to tell what you are doing right or wrong. Try this: pid = os.fork() if pid: # Original fork continues here # pid is child's process id # ... so onwards with the next step # If it needs to wait for the child to complete, it can call os.waitpid else: # New fork continues here, independently of the original process # doing whatever the fork was create for Gary Herron [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
[2.4.2/Linux] Getting Python to fork?
Top