9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Stephen Wynne <stevemw@place.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Fork: useless and painful?
Date: Thu, 10 Jul 2003 13:06:40 -0700	[thread overview]
Message-ID: <3F0DC750.9040707@place.org> (raw)
In-Reply-To: <006601c3471d$7a06de40$b9844051@insultant.net>

And I just got a suggestion to use named pipes, presumably because
they have a richer set of buffering options.

I don't think named pipes help one with the situation where a
DOS program does direct console I/O. I think "net use" does
that when it prompts you for a password; you get the idea,
in any case. My line buffering app is cacls.exe (don't laugh).

I don't think I am going to work on this more right now, but
if I were, I would try to replace the standard I/O via plain pipes
connected to winsock sockets with standard I/O through dedicated
but hidden consoles for each connection. I think it's possible.

As an aside, UWIN's rshd is just as bad, and Cygwin's is worse.
I'm guessing Microsoft's telnetd is fairly brain dead in this
respect, as well.

boyd, rounin wrote:
>>Where is the joy in computing? Win32 is making me wonder.
>
>
> been there, done that.  a repeat of SysVile (sic) R3:
>
>     you could select on a socket or poll on a stream,
>     but they would not interoperate
>
> on NT you need to call WaitForMultipleObjects() iirc and
> that doesn't work on WinShlock (sic) sockets etc, so you
> have to use a threaded implementation.
>
> for extra points, if the NT CreateSocket() call finds that you
> are _not_ WinShlock (sic) the call fails and returns -6 iirc.
>
>




  reply	other threads:[~2003-07-10 20:06 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09 18:19 ron minnich
2003-07-09 18:26 ` Scott Schwartz
2003-07-09 19:39   ` boyd, rounin
2003-07-09 19:45     ` Dan Cross
2003-07-09 20:05       ` Derek Fawcus
2003-07-09 20:09         ` andrey mirtchovski
2003-07-09 20:34           ` Derek Fawcus
2003-07-09 21:08           ` Vincent van Gelderen
2003-07-09 20:31             ` Sam
2003-07-09 21:35               ` boyd, rounin
2003-07-09 22:04               ` andrey mirtchovski
2003-07-09 22:31                 ` boyd, rounin
2003-07-10  1:11             ` ron minnich
2003-07-10  1:17               ` boyd, rounin
2003-07-09 20:14         ` boyd, rounin
2003-07-09 20:31           ` Dan Cross
2003-07-09 20:25         ` Dan Cross
2003-07-10  6:10         ` Mike Haertel
2003-07-10  6:59           ` boyd, rounin
2003-07-09 22:01       ` Geoff Collyer
2003-07-09 22:28         ` boyd, rounin
2003-07-09 22:54           ` OT lunix rants (Was: [9fans] Fork: useless and painful?) andrey mirtchovski
2003-07-09 23:26             ` boyd, rounin
2003-07-10  6:15         ` [9fans] Fork: useless and painful? Mike Haertel
2003-07-10  6:51           ` Geoff Collyer
2003-07-10  7:22             ` boyd, rounin
2003-07-10  8:59               ` Derek Fawcus
2003-07-11 11:24             ` Alexis S. L. Carvalho
2003-07-09 18:36 ` Dan Cross
2003-07-09 19:35 ` boyd, rounin
2003-07-10 14:59 ` rog
2003-07-10 16:47   ` David Presotto
2003-07-10 19:36     ` Stephen Wynne
2003-07-10 19:57       ` boyd, rounin
2003-07-10 20:06         ` Stephen Wynne [this message]
2003-07-10 20:16           ` boyd, rounin
2003-07-11  0:05         ` David Presotto
2003-07-11 15:01           ` ron minnich
2003-07-14  8:51           ` John Kodis
2003-07-14 13:24             ` Lucio De Re
2003-07-14 13:58               ` boyd, rounin
2003-07-14 15:20               ` ron minnich
2003-07-11  2:01 Andrew Simmons
2003-07-11  2:17 ` David Presotto
2003-07-11  2:29   ` boyd, rounin
     [not found]   ` <presotto@closedmind.org>
2003-07-13 19:44     ` Andrew Lynch
2003-07-11  2:32 ` boyd, rounin
2003-07-11 10:59 ` matt
2003-07-11  4:46 Andrew Simmons
2003-07-11  5:14 ` boyd, rounin
2003-07-11  6:21   ` northern snowfall
2003-07-11  5:43     ` boyd, rounin
2003-07-11  8:52   ` Douglas A. Gwyn
2003-07-11 13:27   ` D. Brownlee
2003-07-31 21:07 Joel Salomon
2003-07-31 22:19 ` Dan Cross
2003-08-01  3:00 ` Joel Salomon
2003-08-01 14:42 ` Jack Johnson
2003-08-01 22:26   ` Jim Choate
2003-08-02  8:05     ` Jack Johnson

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=3F0DC750.9040707@place.org \
    --to=stevemw@place.org \
    --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).