From: "Douglas A. Gwyn" <gwyn@arl.army.mil>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] AFS-client for Plan9 - ?
Date: Tue, 21 Nov 2000 16:04:59 +0000 [thread overview]
Message-ID: <3A1A8F29.B3857BB0@arl.army.mil> (raw)
In-Reply-To: <20001120142304.0AD6B199D5@mail.cse.psu.edu>
rog@vitanuova.com wrote:
> however, it's worth remembering, that in the Unix i remember at any
> rate, _exit() is not always invoked on program exit. it isn't invoked
> if the program dies from a signal, for instance.
Right; upon abnormal termination (what POSIX terms "termination
with actions" as I recall), the application process has lost
control, so only the kernel clean-up actions can be performed
(which include closing open FDs, as others have remarked).
> i've always presumed that the final close of fds is done when their
> refcount drops to zero, i.e. when the exited process's file table is
> cleared up by the kernel.
It depends on the kernel (there might be process-owned locks to
release, for example), but that's the roght general idea.
Closing a "file" decrements its in-use count and only when that
count goes to zero is the "real" close function performed, e.g.
device driver drops READY etc.
> so the actual _?exit() system calls are not that crucial to the issue
> of file closing under AFS. stdio is a different matter, of course.
Yes, sorry if I digressed.
next prev parent reply other threads:[~2000-11-21 16:04 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-20 15:25 rog
2000-11-21 16:04 ` Douglas A. Gwyn [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-11-15 8:10 nigel
2000-11-15 8:20 ` Alexander Viro
2000-11-14 23:57 David Gordon Hogan
2000-11-13 20:22 presotto
2000-11-13 20:19 anothy
2000-11-14 9:58 ` Wladimir Mutel
[not found] ` <mwg@alkar.net>
2000-11-14 22:33 ` Tom Duff
2000-11-14 22:41 ` Boyd Roberts
2000-11-14 22:41 ` Alexander Viro
2000-11-14 22:51 ` Boyd Roberts
[not found] ` <boyd@planete.net>
2000-11-14 23:02 ` Tom Duff
2000-11-20 10:55 ` Chris Locke
2000-11-20 10:56 ` Douglas A. Gwyn
2000-11-20 13:24 ` Boyd Roberts
[not found] ` <viro@math.psu.edu>
2000-11-14 23:00 ` Tom Duff
2000-11-14 23:15 ` Alexander Viro
2000-11-14 23:54 ` Tom Duff
2000-11-15 0:31 ` Alexander Viro
2000-11-15 0:38 ` Boyd Roberts
[not found] <200011131639.eADGdhI37677@smtp3.alkar.net>
2000-11-13 17:03 ` Wladimir Mutel
2000-11-13 16:39 presotto
2000-11-14 15:20 ` Boyd Roberts
2000-11-13 16:30 Wladimir Mutel
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=3A1A8F29.B3857BB0@arl.army.mil \
--to=gwyn@arl.army.mil \
--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).