9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@9fans.net
Subject: Re: [9fans] APE and listen(2B)
Date: Thu, 27 Nov 2008 17:16:09 +0200	[thread overview]
Message-ID: <3d938291341b36e441485d1cf0d3a08f@proxima.alt.za> (raw)
In-Reply-To: <b66ccdb4c92100075eeb3caa2560248a@quanstro.net>

> the real solution involves reference counting.  but in your case,
> not forking would make more sense.  in fact, if you wanted
> to start reveal from listen(1), you could dispense with the
> for(;;) and the fork.

Of course, but the point is to implement a Posix utility under APE,
specially as the ultimate goal is GCC compatibility.  So I'll need to
implement it properly.

Now, the code suggests that the purpose of the separate proc is to
support poll/select, but I do not understand quite how it all works
(no concept of timeout that I can see, for example).  I need somebody
to explain to me how it is meant to work and I'll probably code it
adequately.

++L




  reply	other threads:[~2008-11-27 15:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-27  4:35 lucio
2008-11-27  7:49 ` sqweek
2008-11-27  9:40   ` lucio
2008-11-27 14:54   ` erik quanstrom
2008-11-27 15:16     ` lucio [this message]
2008-11-28 17:24 ` Skip Tavakkolian
2008-12-04 17:18 lucio

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=3d938291341b36e441485d1cf0d3a08f@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --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).