Mail Archives: cygwin-developers/1998/12/30/18:22:41
On Thu, Dec 31, 1998 at 01:21:46AM +0100, Corinna Vinschen wrote:
>Hi,
>
>Unfortunately, it's impossible, to logon to the cygwin environment
>via telnet with this new snapshot. in.telnetd breaks the connection
>immediately.
>
>Bye and a happy new year,
Sigh. Yup. I thought of this problem as I was driving somewhere
today.
If I took more trips we'd probably have bug-free code.
Hopefully this should fix it.
-chris
Index: dcrt0.cc
===================================================================
RCS file: /cvs/cvsfiles/devo/winsup/dcrt0.cc,v
retrieving revision 1.129
diff -u -p -r1.129 dcrt0.cc
--- dcrt0.cc 1998/12/30 06:37:27 1.129
+++ dcrt0.cc 1998/12/31 02:12:15
@@ -795,9 +795,6 @@ do_exit (int status)
sigproc_terminate ();
- /* Set this so that subsequent tests will succeed. */
- myself->dwProcessId = GetCurrentProcessId ();
-
if (n & EXIT_REPARENTING)
{
n &= ~EXIT_REPARENTING;
Index: sigproc.cc
===================================================================
RCS file: /cvs/cvsfiles/devo/winsup/sigproc.cc,v
retrieving revision 1.35
diff -u -p -r1.35 sigproc.cc
--- sigproc.cc 1998/12/30 06:37:27 1.35
+++ sigproc.cc 1998/12/31 02:12:15
@@ -679,6 +679,10 @@ sigproc_terminate (void)
sip_printf ("done");
}
+ /* Set this so that subsequent tests will succeed. */
+ if (!myself->dwProcessId)
+ myself->dwProcessId = GetCurrentProcessId ();
+
return;
}
- Raw text -