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 » Developing U++ » U++ Developers corner » TheIDE zombie problem
Re: TheIDE zombie problem [message #7454 is a reply to message #7453] Sat, 30 December 2006 11:04 Go to previous messageGo to previous message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member
Well, you can start children you don't need to wait on, if you really do not need to know when they die. Just start a new process group (setsid()) before calling.

if (!fork()) {
  // as child
  close(fileno(STDIN));
  close(fileno(STDOUT));
  close(fileno(STDERR));
  setsid();
  execve(argv[0], argv, env);
  /* not reached */
}


Iwould assume that's fine for "execute", but if you want to run it in debugged, you may need/want the SIGCHLD to know when it dies? Or if you are using stdin/out, deal/ignore SIGPIPE.

I can certainly fix it, so it leaves no zombies, if that is all that is needed.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Twain - support for scanners - needed
Next Topic: Extensions of X-Server
Goto Forum:
  


Current Time: Sat Jun 28 19:21:06 CEST 2025

Total time taken to generate the page: 0.03331 seconds