9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] cpu -c command
Date: Fri,  8 Jul 2005 06:45:38 -0400	[thread overview]
Message-ID: <ee9e417a050708034576e63e61@mail.gmail.com> (raw)
In-Reply-To: <9737f1df0a67aa7468bec1b2f912b8da@ar.aichi-u.ac.jp>

> Yes
> cpu -c remotecommand
> exits. However
> cpu -c localcommand
> does not.
> 
> For example
> cpu -c ps
> exits, but
> cpu -c /mnt/term/bin/ps
> does not.
> 
> Is is merely a bug, or, feature of cpu command?

cpu -c /mnt/term/bin/ps does not exit because
when you run /mnt/term/bin/ps, the kernel hangs
on to an open fid of the binary in its text cache,
holding a reference to /mnt/term, so even when
the remote cpu unmounts /mnt/term, there are
still lingering references and thus exportfs never
finishes.

the short answer is:
don't run binaries from file systems you want to
be able to unmount quickly.

russ


  reply	other threads:[~2005-07-08 10:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08  5:41 arisawa
2005-07-08 10:45 ` Russ Cox [this message]
2005-07-09  5:06   ` arisawa
2005-07-21  1:46   ` YAMANASHI Takeshi
2005-07-21  4:16     ` arisawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee9e417a050708034576e63e61@mail.gmail.com \
    --to=russcox@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).