cvs commit: src/sys/kern kern_exit.c sys_process.c

Don Lewis truckman at FreeBSD.org
Wed Feb 11 19:06:33 PST 2004


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.



More information about the cvs-src mailing list