Re: GSS-APIv3 sketch

Love Hörnquist Åstrand <lha@apple.com> Thu, 12 November 2009 18:51 UTC

Return-Path: <lha@apple.com>
X-Original-To: kitten@core3.amsl.com
Delivered-To: kitten@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BFDB83A6AB9 for <kitten@core3.amsl.com>; Thu, 12 Nov 2009 10:51:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.067
X-Spam-Level:
X-Spam-Status: No, score=-103.067 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, SARE_GIF_ATTACH=1.42, SARE_SPEC_REPLICA_OBFU=1.812, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nQ+qCJzzLt83 for <kitten@core3.amsl.com>; Thu, 12 Nov 2009 10:51:29 -0800 (PST)
Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by core3.amsl.com (Postfix) with ESMTP id B498F3A6A14 for <kitten@ietf.org>; Thu, 12 Nov 2009 10:51:29 -0800 (PST)
Received: from relay16.apple.com (relay16.apple.com [17.128.113.55]) by mail-out4.apple.com (Postfix) with ESMTP id 750F07F1E68B for <kitten@ietf.org>; Thu, 12 Nov 2009 10:51:58 -0800 (PST)
X-AuditID: 11807137-b7bd4ae000000f0d-5b-4afc594e8c8f
Received: from elliott.apple.com (elliott.apple.com [17.151.62.13]) by relay16.apple.com (Apple SCV relay) with SMTP id CC.9D.03853.E495CFA4; Thu, 12 Nov 2009 10:51:58 -0800 (PST)
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_mjJoBOjBw0YAAlI77VxBJQ)"
Received: from [10.0.1.8] (99-52-202-108.lightspeed.snjsca.sbcglobal.net [99.52.202.108]) by elliott.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KT000G27F2LDJ50@elliott.apple.com> for kitten@ietf.org; Thu, 12 Nov 2009 10:51:58 -0800 (PST)
Subject: Re: GSS-APIv3 sketch
From: Love Hörnquist Åstrand <lha@apple.com>
In-reply-to: <20091112170403.GB1105@Sun.COM>
Date: Thu, 12 Nov 2009 10:52:03 -0800
Message-id: <F6A9FA45-A94E-4648-846D-EB03451FF1BD@apple.com>
References: <20091111181140.GC10501@Sun.COM> <C111F570-A844-4782-B561-08B6685D7E09@apple.com> <20091111184244.GN1105@Sun.COM> <20091111184726.GD10501@Sun.COM> <1257980366.2759.41.camel@naomi.s4.naomi.abartlet.net> <E1N8MHF-004jYm-T7@intern.SerNet.DE> <20091111230442.GY1105@Sun.COM> <E1N8Twh-0057MW-SY@intern.SerNet.DE> <20091112170403.GB1105@Sun.COM>
To: Nicolas Williams <Nicolas.Williams@sun.com>
X-Mailer: Apple Mail (2.1126)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "kitten@ietf.org" <kitten@ietf.org>, Volker Lendecke <Volker.Lendecke@SerNet.DE>
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/kitten>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Nov 2009 18:51:30 -0000

12 nov 2009 kl. 09:04 skrev Nicolas Williams:

> I'd love to see that, please :)

http://www.opengroup.org/onlinepubs/009695399/functions/fork.html

"A process shall be created with a single thread. If a multi-threaded process calls fork(), the new process shall contain a replica of the calling thread and its entire address space, possibly including the states of mutexes and other resources. Consequently, to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. [THR] 
  Fork handlers may be established by means of the pthread_atfork()function in order to maintain application invariants across fork() calls."

Does libc regiester all mutexes it uses with pthread_atfork() so malloc will continue to work ? As long as all libraries doesn't you pthread_atfork() you are dead.

Fork-and-not-do-exec is dead concept in multi threaded apps.

Love