Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Sep 2002 21:55:56 +0100 (BST)
From:      Duncan Barclay <dmlb@dmlb.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        emulation@FreeBSD.org
Subject:   fix for Linux matlab exit behaviour - problem with linux_clone(2
Message-ID:  <XFMail.20020905215556.dmlb@computer.my.domain>
In-Reply-To: <XFMail.20020905194033.dmlb@computer.my.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
Please review the following PR for a hack to let matlab exit.

        http://www.freebsd.org/cgi/query-pr.cgi?pr=42457

The code in PR is deliberatly not a patch because it is not the right way
to cleanly fix the problem.

The problem is that we do not fully emulate all of linux_clone(2) behaviour,
in particular, linux_clone(2) allows a thread to not send a signal to
its parent on exit. /sys/kern_exit.c does not allow this and will
send a specified signal or SIGCHLD. Matlab has a SIGCHLD handler that
does not reap threads. If the SIGCHLD is not sent, matlab reaps its last
thread and exits cleanly.

This has been tested on 4.6-PRE, with Matlab Release 12.1.

Duncan

-- 
________________________________________________________________________
Duncan Barclay  | God smiles upon the little children,
dmlb@dmlb.org   | the alcoholics, and the permanently stoned.
dmlb@freebsd.org| Steven King

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020905215556.dmlb>