9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9fans@9fans.net
Subject: Re: [9fans] file descriptor leak
Date: Wed, 17 Feb 2016 03:19:19 +0100	[thread overview]
Message-ID: <8607db9c49d8dc4c1073ac90653f6466@felloff.net> (raw)
In-Reply-To: <CAOw7k5jCGQCcivH6nonTC=u8FpN0XQ4YQOerM1TXQTFjogW_Zg@mail.gmail.com>

> It's often better to use the Erlang fail-fast ("just fail") and restart
> approach for persistent services.

indeed. ndb/dns also has this "restart" ctl message where it restarts the
server part but keeps the 9p pipe posted. tho that kills all the fid's and
new fids starts as "dummy" user owned file, not a directory, so after restart
/net/dns vanishes.

doing some further experiments, it appears that when i make new fids start
out as directories it works. :-)

ndb/cs also has some logic where it remounts /srv/dns when opening /net/dns
fails.

--
cinap



  reply	other threads:[~2016-02-17  2:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 15:52 arisawa
2016-02-16 15:56 ` Jacob Todd
2016-02-16 16:42   ` lucio
2016-02-16 17:05     ` Jacob Todd
2016-02-16 17:17     ` Charles Forsyth
2016-02-16 18:01 ` cinap_lenrek
2016-02-16 21:05   ` erik quanstrom
2016-02-16 21:16   ` Charles Forsyth
2016-02-17  2:19     ` cinap_lenrek [this message]
2016-02-22  5:18     ` erik quanstrom
2016-02-16 22:24 ` Charles Forsyth
2016-02-17  1:13   ` arisawa
2016-02-17  1:22     ` cinap_lenrek

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=8607db9c49d8dc4c1073ac90653f6466@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9fans@9fans.net \
    /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).