[Bug 915158] Re: Process is not closing

Sworddragon 915158 at bugs.launchpad.net
Thu Jun 20 23:28:05 UTC 2013


In my example the dash process still exists until both sleeps have been
finished. I have written a small testcase in C to check if its an
applications fault if there are zombie processes:

#include <stdio.h>
#include <unistd.h>

int main()
{
	FILE *pipe;

	if((pipe = popen("echo", "r")) == 0)
	{
	}
	/*pclose(pipe);*/
	usleep(100000000);
	return 0;
}

This example will cause sh to get a zombie process if echo has finished
until the main application finishes. But if I'm uncommenting
/*pclose(pipe);*/ the zombie process will successfully clean up. So I'm
assuming its the fault of the parent process if there are zombie
processes because it isn't closing the related file descriptor.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dash in Ubuntu.
https://bugs.launchpad.net/bugs/915158

Title:
  Process is not closing

Status in “dash” package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 12.04 dev and sometimes I'm seeing zombie processes
  which are using no virtual memory and not closing. They will only
  close if their parent process closes. For example if I start
  lxterminal and opening htop I will see that there are 2 lxterminal
  processes. One normal process and one forked process which is a
  zombie. The same happens sometimes with lxdm-binary if I login into my
  desktop. In the attachments is a screenshot from such processes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/915158/+subscriptions




More information about the foundations-bugs mailing list