Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » fork() problem
fork() problem [message #18936] Sat, 01 November 2008 20:29 Go to previous message
mdelfede is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SelfUpdate()
Next Topic: Huge font in upp[Gnome-Debian]
Goto Forum:
  


Current Time: Sat Apr 27 17:15:28 CEST 2024

Total time taken to generate the page: 0.04680 seconds