NetBSD Problem Report #49001

From www@NetBSD.org  Thu Jul 17 05:30:11 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 34A0FA6541
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Jul 2014 05:30:11 +0000 (UTC)
Message-Id: <20140717053009.DC7DCA6560@mollari.NetBSD.org>
Date: Thu, 17 Jul 2014 05:30:09 +0000 (UTC)
From: yaneurabeya@gmail.com
Reply-To: yaneurabeya@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [patch] use _exit instead of exit to be async safe in threaded code
X-Send-Pr-Version: www-1.0

>Number:         49001
>Category:       bin
>Synopsis:       [patch] use _exit instead of exit to be async safe in threaded code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 17 05:35:00 +0000 2014
>Closed-Date:    Thu Aug 10 01:31:30 +0000 2017
>Last-Modified:  Thu Aug 10 01:31:30 +0000 2017
>Originator:     Garrett Cooper
>Release:        n/a
>Organization:
EMC / Isilon Storage Division
>Environment:
n/a
>Description:
We ran into an issue where t_fork was failing on FreeBSD because it was using exit instead of _exit. Once we switched the testcase to _exit, the issue went away.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Garrett Cooper <yaneurabeya@gmail.com>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: bin/49001: [patch] use _exit instead of exit to be async safe in
 threaded code
Date: Wed, 16 Jul 2014 22:38:42 -0700

 --20cf302240d9ba8c4804fe5d0df5
 Content-Type: text/plain; charset=UTF-8

 On Wed, Jul 16, 2014 at 10:35 PM,  <gnats-admin@netbsd.org> wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `bin/49001'.
 > The individual assigned to look at your
 > report is: bin-bug-people.
 >
 >>Category:       bin
 >>Responsible:    bin-bug-people
 >>Synopsis:       [patch] use _exit instead of exit to be async safe in threaded code
 >>Arrival-Date:   Thu Jul 17 05:35:00 +0000 2014

 Patch attached -- thanks :)!
 -Garrett

 --20cf302240d9ba8c4804fe5d0df5
 Content-Type: application/octet-stream; 
 	name="t_fork-use-_exit-instead-of-exit-for-async-safety.patch"
 Content-Disposition: attachment; 
 	filename="t_fork-use-_exit-instead-of-exit-for-async-safety.patch"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_hxpndbf00

 SW5kZXg6IHRlc3RzL2xpYi9saWJwdGhyZWFkL3RfZm9yay5jCj09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6
 IC9jdnNyb290L3NyYy90ZXN0cy9saWIvbGlicHRocmVhZC90X2ZvcmsuYyx2CnJldHJpZXZpbmcg
 cmV2aXNpb24gMS4xCmRpZmYgLXUgLXIxLjEgdF9mb3JrLmMKLS0tIHRlc3RzL2xpYi9saWJwdGhy
 ZWFkL3RfZm9yay5jCTE2IEp1bCAyMDEwIDE1OjQyOjUzIC0wMDAwCTEuMQorKysgdGVzdHMvbGli
 L2xpYnB0aHJlYWQvdF9mb3JrLmMJMTcgSnVsIDIwMTQgMDQ6NTc6MjEgLTAwMDAKQEAgLTYxLDcg
 KzYxLDcgQEAKIAogCXRocmVhZF9zdXJ2aXZlZCA9IDE7CiAJaWYgKHBhcmVudCAhPSBnZXRwaWQo
 KSkgewotCQlleGl0KDEpOworCQlfZXhpdCgxKTsKIAl9CiAJcmV0dXJuIE5VTEw7CiB9CkBAIC05
 NSw3ICs5NSw3IEBACiAJCUFURl9SRVFVSVJFX0VRX01TRyhXRVhJVFNUQVRVUyhzdGF0dXMpLCAw
 LCAidGhyZWFkIHN1cnZpdmVkIGluIGNoaWxkIik7CiAJfSBlbHNlIHsKIAkJc2xlZXAoNSk7Ci0J
 CWV4aXQodGhyZWFkX3N1cnZpdmVkID8gMSA6IDApOworCQlfZXhpdCh0aHJlYWRfc3Vydml2ZWQg
 PyAxIDogMCk7CiAJfQogfQogCg==
 --20cf302240d9ba8c4804fe5d0df5--

State-Changed-From-To: open->closed
State-Changed-By: ginsbach@NetBSD.org
State-Changed-When: Thu, 10 Aug 2017 01:31:30 +0000
State-Changed-Why:
christos committed idential change for PR/51886.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.