From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 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 Topicbox-Message-UUID: 575ed6c6-ead6-11e9-9d60-3106f5b1d025 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.