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

* Re: [parisc-linux] rlogin: connection closed (SOLUTION)
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Randolph Chung @ 2002-12-03  4:56 UTC (permalink / raw)
  To: Larry McVoy; +Cc: parisc-linux, phi, dev

In reference to a message from Larry McVoy, dated Dec 02:
> 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.

Nah, this is not it. It's the problem with EAGAIN != EWOULDBLOCK on 
hppa-linux.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

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

* Re: [parisc-linux] rlogin: connection closed (SOLUTION)
  2002-12-03  4:56 ` Randolph Chung
@ 2002-12-03  5:00   ` Larry McVoy
  0 siblings, 0 replies; 3+ messages in thread
From: Larry McVoy @ 2002-12-03  5:00 UTC (permalink / raw)
  To: Randolph Chung; +Cc: Larry McVoy, parisc-linux, phi, dev

On Mon, Dec 02, 2002 at 08:56:57PM -0800, Randolph Chung wrote:
> In reference to a message from Larry McVoy, dated Dec 02:
> > 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.
> 
> Nah, this is not it. It's the problem with EAGAIN != EWOULDBLOCK on 
> hppa-linux.

OK, whatever.  I just though the rlogin people would want to know.
This seems to be a long standing and annoying bug.
-- 
---
Larry McVoy            	 lm at bitmover.com           http://www.bitmover.com/lm 

^ 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.