Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2011 11:16:28 +0200 (CEST)
From:      Petr Salinger <Petr.Salinger@seznam.cz>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Robert Millan <rmh@debian.org>, current@freebsd.org
Subject:   Re: [PATCH] Improve LinuxThreads compatibility in rfork()
Message-ID:  <alpine.LRH.2.02.1107121108300.10573@sci.felk.cvut.cz>
In-Reply-To: <20110711180246.GA43872@deviant.kiev.zoral.com.ua>
References:  <20110711133342.GT43872@deviant.kiev.zoral.com.ua> <alpine.LRH.2.02.1107111556000.7134@sci.felk.cvut.cz> <20110711142232.GU43872@deviant.kiev.zoral.com.ua> <alpine.LRH.2.02.1107111641340.7134@sci.felk.cvut.cz> <20110711150614.GV43872@deviant.kiev.zoral.com.ua> <alpine.LRH.2.02.1107111718440.7134@sci.felk.cvut.cz> <20110711154102.GW43872@deviant.kiev.zoral.com.ua> <alpine.LRH.2.02.1107111805350.7134@sci.felk.cvut.cz> <20110711172408.GX43872@deviant.kiev.zoral.com.ua> <alpine.LRH.2.02.1107111944550.7134@sci.felk.cvut.cz> <20110711180246.GA43872@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--546530387-125356705-1310462188=:10573
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

>> Seems this interface be acceptable ?
>
> Looks good to me.

The proposed code changes are in the attached patch.

Proposed wording of addition into RFORK(2):

DESCRIPTION:

RFTSIGZMB  	If set, the kernel will return selected signal number instead
                 of SIGCHILD upon thread exit for the child.
                 The selected signal number have to be encoded into flags
                 by ORing RFTSIGFLAGS(signum).

ERRORS:

EINVAL          An invalid signal was specified.


Petr
--546530387-125356705-1310462188=:10573
Content-Type: TEXT/x-diff; name=006_lt-rf.diff
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.LRH.2.02.1107121116280.10573@sci.felk.cvut.cz>
Content-Description: 
Content-Disposition: attachment; filename=006_lt-rf.diff

LS0tIGEvc3lzL2tlcm4va2Vybl9mb3JrLmMNCisrKyBiL3N5cy9rZXJuL2tl
cm5fZm9yay5jDQpAQCAtNDc2LDcgKzQ3NiwxMCBAQA0KIAkJc2lnYWN0c19j
b3B5KG5ld3NpZ2FjdHMsIHAxLT5wX3NpZ2FjdHMpOw0KIAkJcDItPnBfc2ln
YWN0cyA9IG5ld3NpZ2FjdHM7DQogCX0NCi0JaWYgKGZsYWdzICYgUkZMSU5V
WFRIUE4pIA0KKw0KKwlpZiAoZmxhZ3MgJiBSRlRTSUdaTUIpDQorCSAgICAg
ICAgcDItPnBfc2lncGFyZW50ID0gUkZUU0lHTlVNKGZsYWdzKTsNCisJZWxz
ZSBpZiAoZmxhZ3MgJiBSRkxJTlVYVEhQTikNCiAJICAgICAgICBwMi0+cF9z
aWdwYXJlbnQgPSBTSUdVU1IxOw0KIAllbHNlDQogCSAgICAgICAgcDItPnBf
c2lncGFyZW50ID0gU0lHQ0hMRDsNCkBAIC03MjMsNiArNzI2LDkgQEANCiAJ
aWYgKChmbGFncyAmIChSRkZER3xSRkNGREcpKSA9PSAoUkZGREd8UkZDRkRH
KSkNCiAJCXJldHVybiAoRUlOVkFMKTsNCiANCisJaWYgKChmbGFncyAmIFJG
VFNJR1pNQikgJiYgKFJGVFNJR05VTShmbGFncykgPiBfU0lHX01BWFNJRykp
DQorCQlyZXR1cm4gKEVJTlZBTCk7DQorDQogCXAxID0gdGQtPnRkX3Byb2M7
DQogDQogCS8qDQotLS0gYS9zeXMvc3lzL3VuaXN0ZC5oDQorKysgYi9zeXMv
c3lzL3VuaXN0ZC5oDQpAQCAtMTgwLDYgKzE4MCwxMSBAQA0KICNkZWZpbmUJ
UkZMSU5VWFRIUE4JKDE8PDE2KQkvKiBkbyBsaW51eCBjbG9uZSBleGl0IHBh
cmVudCBub3RpZmljYXRpb24gKi8NCiAjZGVmaW5lCVJGU1RPUFBFRAkoMTw8
MTcpCS8qIGxlYXZlIGNoaWxkIGluIGEgc3RvcHBlZCBzdGF0ZSAqLw0KICNk
ZWZpbmUJUkZISUdIUElECSgxPDwxOCkJLyogdXNlIGEgcGlkIGhpZ2hlciB0
aGFuIDEwIChpZGxlcHJvYykgKi8NCisjZGVmaW5lCVJGVFNJR1pNQgkoMTw8
MTkpCS8qIHNlbGVjdCBzaWduYWwgZm9yIGV4aXQgcGFyZW50IG5vdGlmaWNh
dGlvbiAqLw0KKyNkZWZpbmUJUkZUU0lHU0hJRlQJMjAJLyogc2VsZWN0ZWQg
c2lnbmFsIG51bWJlciBpcyBpbiBiaXRzIDIwLTI3ICAqLw0KKyNkZWZpbmUJ
UkZUU0lHTUFTSwkweEZGDQorI2RlZmluZQlSRlRTSUdOVU0oZmxhZ3MpCSgo
KGZsYWdzKSA+PiBSRlRTSUdTSElGVCkgJiBSRlRTSUdNQVNLKQ0KKyNkZWZp
bmUJUkZUU0lHRkxBR1Moc2lnbnVtKQkoKHNpZ251bSkgPDwgUkZUU0lHU0hJ
RlQpDQogI2RlZmluZQlSRlBQV0FJVAkoMTw8MzEpCS8qIHBhcmVudCBzbGVl
cHMgdW50aWwgY2hpbGQgZXhpdHMgKHZmb3JrKSAqLw0KICNkZWZpbmUJUkZL
RVJORUxPTkxZCShSRlNUT1BQRUQgfCBSRkhJR0hQSUQgfCBSRlBQV0FJVCkN
CiANCg==

--546530387-125356705-1310462188=:10573--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LRH.2.02.1107121108300.10573>