Date: Wed, 11 Feb 2004 19:06:14 -0800 (PST) From: Don Lewis <truckman@FreeBSD.org> To: marius@alchemy.franken.de Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_exit.c sys_process.c Message-ID: <200402120306.i1C36E7E031864@gw.catspoiler.org> In-Reply-To: <20040212012327.A67533@newtrinity.zeist.de>
index | next in thread | previous in thread | raw e-mail
On 12 Feb, Marius Strobl wrote: > On Wed, Feb 11, 2004 at 02:06:02PM -0800, Don Lewis wrote: >> truckman 2004/02/11 14:06:02 PST >> >> FreeBSD src repository >> >> Modified files: >> sys/kern kern_exit.c sys_process.c >> Log: >> When reparenting a process to init, make sure that p_sigparent is >> set to SIGCHLD. This avoids the creation of orphaned Linux-threaded >> zombies that init is unable to reap. This can occur when the parent >> process sets its SIGCHLD to SIG_IGN. Fix a similar situation in the >> PT_DETACH code. >> > > Does this fix Matlab hanging on exit (PR 42457)? I don't think so. In addition to the bug mentioned in the PR, I think there is another one that is causing matlab to hang. I don't think the linux_wait4(-1, &foo, 0 0) call should hang the parent process even if it has a child thread as long as it doesn't have a child process. I'd expect that the linux_wait4() call should return an error, and then matlab would go onto reap the thread. I'd have to look at the Linux man pages, though.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402120306.i1C36E7E031864>
