From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: "Mathieu Lonjaret" Date: Wed, 15 Sep 2010 13:07:56 +0200 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-cpxaysgycglppsgskbfqbhozwz" Subject: Re: [9fans] alt and chanfree Topicbox-Message-UUID: 576437d8-ead6-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-cpxaysgycglppsgskbfqbhozwz Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Ah indeed, thank you. --upas-cpxaysgycglppsgskbfqbhozwz Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: mpl@smgl.fr.eu.org Delivered-To: mpl@smgl.fr.eu.org Received: by serenity.smgl.fr.eu.org (Postfix, from userid 65534) id 67D7432CFD; Wed, 15 Sep 2010 11:49:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on serenity.smgl.fr.eu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=1.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by serenity.smgl.fr.eu.org (Postfix) with ESMTP id 8D1D632CDE for ; Wed, 15 Sep 2010 11:49:36 +0200 (CEST) Received: by ewy22 with SMTP id 22so3425ewy.41 for ; Wed, 15 Sep 2010 02:49:36 -0700 (PDT) Received: by 10.213.22.193 with SMTP id o1mr3290798ebb.53.1284544176264; Wed, 15 Sep 2010 02:49:36 -0700 (PDT) X-Forwarded-To: mpl@smgl.fr.eu.org X-Forwarded-For: mathieu.lonjaret@gmail.com mpl@smgl.fr.eu.org Delivered-To: mathieu.lonjaret@gmail.com Received: by 10.14.29.12 with SMTP id h12cs3277eea; Wed, 15 Sep 2010 02:49:35 -0700 (PDT) Received: by 10.151.122.8 with SMTP id z8mr1654035ybm.376.1284544174319; Wed, 15 Sep 2010 02:49:34 -0700 (PDT) Received: from gouda.swtch.com (gouda.swtch.com [67.207.142.3]) by mx.google.com with ESMTP id x21si3248532ibf.45.2010.09.15.02.49.32; Wed, 15 Sep 2010 02:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of 9fans-bounces+mathieu.lonjaret=gmail.com@9fans.net designates 67.207.142.3 as permitted sender) client-ip=67.207.142.3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of 9fans-bounces+mathieu.lonjaret=gmail.com@9fans.net designates 67.207.142.3 as permitted sender) smtp.mail=9fans-bounces+mathieu.lonjaret=gmail.com@9fans.net; dkim=pass (test mode) header.i=@gmail.com Received: from localhost ([127.0.0.1] helo=gouda.swtch.com) by gouda.swtch.com with esmtp (Exim 4.69) (envelope-from <9fans-bounces@9fans.net>) id 1Ovob0-0002IH-IG; Wed, 15 Sep 2010 09:48:06 +0000 Received: from mail-qw0-f49.google.com ([209.85.216.49]) by gouda.swtch.com with esmtp (Exim 4.69) (envelope-from ) id 1Ovoaz-0002IC-4w for 9fans@9fans.net; Wed, 15 Sep 2010 09:48:05 +0000 Received: by qwd7 with SMTP id 7so590654qwd.36 for <9fans@9fans.net>; Wed, 15 Sep 2010 02:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=NkeLkB0y6O1JBTNw027ZwcaQP5+gDd0ol6aRz4hMJ5A=; b=F0M91arfE140+TYaqp3rYJAiYh4iM9S41mt6cxOaTCz9MpeSpv57z0ZKrZOP1gsyr9 Tu3FyWiysovX7pglLZtz+sVvXY8YwKGnFWC8JKuHec2QMFyKjvjXFnoO0RRdhMQlY0+u W49H6Eli1ixXRjJ8fLlXYPiQBFDedsCuS+EWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=UqArtwbLuROhHNDxtunypVCREFSAi0KldKIhQuEMffKKfF1nIj7k4MGX4vNqo9YTj3 IGqDWZYFi8fms4sGaYb0lH3me7s9mlB3XSuxUSaUpGsjLHn02/8hw9VuvJ0E8JNf2OKK 1bg7V8uPkHbOMKs6wg0F/TxCtBdTR6p8U1KMw= MIME-Version: 1.0 Received: by 10.229.240.145 with SMTP id la17mr947363qcb.75.1284544076984; Wed, 15 Sep 2010 02:47:56 -0700 (PDT) Received: by 10.229.183.138 with HTTP; Wed, 15 Sep 2010 02:47:56 -0700 (PDT) In-Reply-To: <4f594cbed02febd4f1086a3bf4b13bd9@iram.fr> References: <5b73ce333ceed4d8bb71f0e017f70cca@plug.quanstro.net> <4f594cbed02febd4f1086a3bf4b13bd9@iram.fr> Date: Wed, 15 Sep 2010 10:47:56 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] alt and chanfree X-BeenThere: 9fans@9fans.net X-Mailman-Version: 2.1.10 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.9fans.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces@9fans.net Errors-To: 9fans-bounces+mathieu.lonjaret=gmail.com@9fans.net On 15 September 2010 09:15, Mathieu Lonjaret wrote: > I haven't tried chanclose() yet, but setting to nil the freed chan in the > alt entry is not really what I wanted since it will make alt() return -1 > (better than crashing but not ideal). it wouldn't return -1 (assuming there are at least some valid channels in the alt array) if you set the op to CHANNOP as well as setting c to nil. --upas-cpxaysgycglppsgskbfqbhozwz--