All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] rlogin: connection closed (SOLUTION)
@ 2002-12-02 21:54 Larry McVoy
  2002-12-03  4:56 ` Randolph Chung
  0 siblings, 1 reply; 3+ messages in thread
From: Larry McVoy @ 2002-12-02 21:54 UTC (permalink / raw)
  To: parisc-linux, phi; +Cc: dev

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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-03  5:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 21:54 [parisc-linux] rlogin: connection closed (SOLUTION) Larry McVoy
2002-12-03  4:56 ` Randolph Chung
2002-12-03  5:00   ` Larry McVoy

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.