From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <11bd6a246368ba74227977263f8030c5@quanstro.net> To: 9fans@9fans.net From: erik quanstrom Date: Sun, 15 Jun 2008 13:25:35 -0400 In-Reply-To: <28E627FF-EA71-4F0A-8146-AE73CC1C337C@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] command line tool for storing / reading files on venti Topicbox-Message-UUID: c0d56d20-ead3-11e9-9d60-3106f5b1d025 >> Aha. But this still does not terminate the vacfs, right ? > > > Once you kill the script, you also kill the processes it created - > that's what process groups are, remember? incorrect. the script exits, it is not killed. for example ; cat script #!/bin/rc rfork n sleep 1492& exit '' ; script ; ps -a|grep sleep quanstro 1519 0:00 0:00 8K Sleep sleep 1492 quanstro 1521 0:00 0:00 156K Pread grep sleep when the script exits, the channel is closed, since all the writers are gone. this means that when vacfs read(2)'s from its 9p connection, it gets -1. it is conventional to exit at this point since no further work may be done. ; cat script #!/bin/rc rfork n ramfs exit '' ; script ; ps -a | grep ramfs quanstro 1860 0:00 0:00 156K Pread grep ramfs - erik