Home » U++ Library support » U++ Library : Other (not classified elsewhere) » fork() problem
fork() problem [message #18936] |
Sat, 01 November 2008 20:29 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
This (very simple) gui app :
GUI_APP_MAIN
{
int pid;
pid = fork();
if(pid > 0)
{
PromptOK("Process " + AsString(pid));
return;
}
else if (pid == 0)
{
PromptOK("Parent Process");
return;
}
else
{
PromptOK("ERROR");
return;
}
TestFork().Run();
}
Crashes (with memory leak msgbox) instead of forking into 2 processes.
Max
|
|
|
Goto Forum:
Current Time: Sat Apr 27 17:15:28 CEST 2024
Total time taken to generate the page: 0.04680 seconds
|