All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry McVoy <lm@bitmover.com>
To: parisc-linux@lists.parisc-linux.org, phi@hpfrcu81.france.hp.com
Cc: dev@bitmover.com
Subject: [parisc-linux] rlogin: connection closed (SOLUTION)
Date: Mon, 2 Dec 2002 13:54:25 -0800	[thread overview]
Message-ID: <200212022154.gB2LsPc31908@work.bitmover.com> (raw)

This fixes it.  Looks like a race, I wasn't inclined to dig further, this
got me past the problem.  I suspect that parisc fork() runs parent/child
in the opposite order from every other Unix and that causes a race but
I have not looked.

--lm

diff -Nur netkit-rsh-0.17/rlogind/rlogind.c NEW/netkit-rsh-0.17/rlogind/rlogind.c
--- netkit-rsh-0.17/rlogind/rlogind.c   Mon Dec  2 13:52:37 2002
+++ NEW/netkit-rsh-0.17/rlogind/rlogind.c       Mon Dec  2 13:48:48 2002
@@ -429,6 +429,7 @@
        if (netfd > 2) close(netfd);
        child(hname, termtype, lusername, authenticated);
     }
+    usleep(100000);
     close(slave);
     on = 1;
     ioctl(netfd, FIONBIO, &on);

             reply	other threads:[~2002-12-02 21:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02 21:54 Larry McVoy [this message]
2002-12-03  4:56 ` [parisc-linux] rlogin: connection closed (SOLUTION) Randolph Chung
2002-12-03  5:00   ` Larry McVoy

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=200212022154.gB2LsPc31908@work.bitmover.com \
    --to=lm@bitmover.com \
    --cc=dev@bitmover.com \
    --cc=parisc-linux@lists.parisc-linux.org \
    --cc=phi@hpfrcu81.france.hp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.