9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: MAILER-DAEMON@ncrausl1.australia.NCR.COM MAILER-DAEMON@ncrausl1.australia.NCR.COM
Subject: Returned mail
Date: Wed,  9 Aug 1995 06:38:44 -0400	[thread overview]
Message-ID: <19950809103844.fzAfwDLG2_RifjQ0bYVNHt4LCDCObGV8M0zlv69uqWc@z> (raw)

Your mail could not be delivered because of the following reason:


   ----- Transcript of session follows -----
Executing: /usr/lib/mail/surrcmd/smtpqer -B -C -u ncrausl1.Australia.NCR.COM!ncrhub4!ncrgw1!cse.psu.edu!9fans msm2syd bduane@msm2syd
smtpqer: Binary contents cannot be sent via SMTP
server "/usr/lib/mail/surrcmd/smtpqer" failed - unknown mailer error 1

   ----- Unsent message follows -----
>From ncrgw1!cse.psu.edu!9fans Tue Aug  8 01:26 EDT 1995 remote from ncrhub4
Received: by ncrhub4.ATTGIS.COM; 8 Aug 95 01:26:12 EDT
Received: by ncrgw1.ATTGIS.COM; 8 Aug 95 01:21:54 EDT
Received: by psuvax1.cse.psu.edu id <33986>; Tue, 8 Aug 1995 00:52:43 -0400
Received: from plan9.att.com ([192.20.225.252]) by psuvax1.cse.psu.edu with SMTP id <33958>; Tue, 8 Aug 1995 00:52:05 -0400
From:	seanq@plan9.att.com
To:	9fans@cse.psu.edu
Date:	Tue, 8 Aug 1995 00:22:06 -0400
Message-Id: <95Aug8.005205edt.33958@psuvax1.cse.psu.edu>
Sender: owner-9fans@cse.psu.edu
Precedence: bulk
Reply-To: 9fans@cse.psu.edu

>That sounds like a bug.  But why doesn't ftpfs suffer the same
>symptoms?  On the other hand, even
>	sleep 10 >[0]/tmp/zz >[1]/tmp/zz >[2]/tmp/zz >[3]/tmp/zz &
>makes the window stick around; what files is that holding open?
>It should be none, right?

When you open a window, a new name space is created with the window's
files bound in the appropriate places, i.e. /dev and /mnt/8B=.  These
binds are in effect open file descriptors and the window will not
go away until they are closed.  This is why the command line
	sleep 10 >[0]/tmp/zz >[1]/tmp/zz >[2]/tmp/zz >[3]/tmp/zz &
stops the window from closing.

The namespace itself is referenced counted, so when all processes associated
with the name space have exited, any open files bound in the namespace are closed.

The reason the window closes even though ftpfs is running is rather subtle.
When ftpfs is started, it rforks the server process with the flag RFNAMEG
set.  This puts the server process in a copy of the original namespace.
Note that since it is a copy of the original namespace, it contains
references the the window's files.
The server is accessed by a pipe that is mounted in the original namespace.
When /bin/rc exits, the original namespace closes.  At this point, the window
is held up by ftpfs's namespace.  However, the original name-space contains
the only reference to one end of the pipe to ftpfs, thus this end of
the pipe is closed.  Ftpfs notices this and dies.  This closes
the namespace associated with ftpfs, closing the files associated with the window,
which finally allows the window to close.......

The reason that the above does not occur for dossrv is that the server
process is not rforked with RFNAMEG set.  This is probably a bug.  The net
result is that rc and dossrv share the same namespace, and thus when rc exits,
the namespace is not closed and hence dossrv does not die.....In effect
dossrv holds itself up, which stops the window from closing.







             reply	other threads:[~1995-08-09 10:38 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-09 10:38 MAILER-DAEMON [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-04-26  9:32 Mail
1996-04-26  8:45 Mail
1996-04-26  8:01 Mail
1996-04-26  7:28 Mail
1995-09-27 14:07 MAILER-DAEMON
1995-09-27 13:30 MAILER-DAEMON
1995-09-27 12:41 MAILER-DAEMON
1995-09-27 12:09 MAILER-DAEMON
1995-09-27 11:39 MAILER-DAEMON
1995-09-27 11:08 MAILER-DAEMON
1995-09-27 10:38 MAILER-DAEMON
1995-09-27  9:58 MAILER-DAEMON
1995-09-27  9:08 MAILER-DAEMON
1995-09-27  8:40 MAILER-DAEMON
1995-09-27  8:10 MAILER-DAEMON
1995-09-27  7:27 MAILER-DAEMON
1995-08-22  5:57 MAILER-DAEMON
1995-08-22  3:58 MAILER-DAEMON
1995-08-22  3:58 MAILER-DAEMON
1995-08-19  1:58 MAILER-DAEMON
1995-08-18 23:11 MAILER-DAEMON
1995-08-09  6:59 dhog
1995-08-08 17:16 Scott
1995-08-08 15:37 Scott
1995-08-08 15:33 Greg
1995-08-08  7:17 dhog
1995-08-08  5:37 MAILER-DAEMON
1995-08-06 21:20 MAILER-DAEMON
1995-08-05 17:56 MAILER-DAEMON
1995-07-28 22:03 MAILER-DAEMON
1995-07-27 23:33 MAILER-DAEMON
1995-04-12  4:20 MAILER-DAEMON
1995-04-05 12:18 MAILER-DAEMON

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=19950809103844.fzAfwDLG2_RifjQ0bYVNHt4LCDCObGV8M0zlv69uqWc@z \
    --to=mailer-daemon@ncrausl1.australia.ncr.com \
    /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).