May I ask if you are successfully using threading for your program, why to you want to fork as well? What are you going to do after you fork?
Note: I'm not condemning the use of fork here, just trying to see a way to a solution for you that avoids needing to re-write your entire application.
If, for example, you need to run an external command, then there are a couple of ways of approaching that that are known to work.
In reply to Re^3: problems with fork from thread
by BrowserUk
in thread problems with fork from thread
by cristi1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |