OSDN Git Service

* newsym: Use correct prefix for generating imports.
authorcgf <cgf>
Sun, 6 Jul 2003 23:24:13 +0000 (23:24 +0000)
committercgf <cgf>
Sun, 6 Jul 2003 23:24:13 +0000 (23:24 +0000)
* pinfo.cc (_pinfo::commune_send): Don't wait forever for a response from
another process.

winsup/cygwin/ChangeLog
winsup/cygwin/newsym
winsup/cygwin/pinfo.cc

index 13749d0..16b75af 100644 (file)
@@ -1,5 +1,11 @@
 2003-07-06  Christopher Faylor  <cgf@redhat.com>
 
+       * newsym: Use correct prefix for generating imports.
+       * pinfo.cc (_pinfo::commune_send): Don't wait forever for a response
+       from another process.
+
+2003-07-06  Christopher Faylor  <cgf@redhat.com>
+
        * syscalls.cc (gethostid): Set thread affinity so that results are
        predictable.
 
index 688a8c6..2453afd 100755 (executable)
@@ -11,7 +11,7 @@ while [ -n "$1" ]; do
     oldsym=$1; shift
     cat <<EOF > newsym.dir/$newsym.s
        .section .idata$6
-       .extern __imp__$oldsym
+       .extern __imp_$oldsym
        .extern __head_cygwin1_dll
        .section .text
        .global _$newsym
index 625f022..8899def 100644 (file)
@@ -363,7 +363,7 @@ _pinfo::commune_send (DWORD code)
 
   /* FIXME: Need something better than an busy loop here */
   bool isalive;
-  while ((isalive = alive ()))
+  for (int i = 0; (isalive = alive ()) || (i < 65536); i++)
     if (myself->hello_pid <= 0)
       break;
     else