summaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-30 23:26:02 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-30 23:26:02 +0000
commita81980fe0d9f7e0041ac581ba15013c70e8b7f32 (patch)
tree56f97f32a0b88917169d82b14890af216bbc934f /libjava/include
parent8fab1737f05202e2b11c0c9a493f2c9d3e0f017b (diff)
downloadgcc-a81980fe0d9f7e0041ac581ba15013c70e8b7f32.tar.gz
* include/name-finder.h: Include <sys/wait.h>.
(_Jv_name_finder::pid): Now of type `pid_t'. (_Jv_name_finder::~_Jv_name_finder): Call waitpid(). * java/lang/Throwable.java (CPlusPlusDemangler.close): Call `proc.waitFor()'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/name-finder.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libjava/include/name-finder.h b/libjava/include/name-finder.h
index 9a1d7dfdaac..2d2ab9f4f6e 100644
--- a/libjava/include/name-finder.h
+++ b/libjava/include/name-finder.h
@@ -17,6 +17,7 @@ details. */
#include <jvm.h>
#include <sys/types.h>
+#include <sys/wait.h>
#include <string.h>
#include <stdio.h>
@@ -38,8 +39,12 @@ public:
#if defined (HAVE_PIPE) && defined (HAVE_FORK)
close (f_pipe[1]);
fclose (b_pipe_fd);
+
+ int wstat;
+ // We don't care about errors here.
+ waitpid (pid, &wstat, 0);
#endif
- }
+ }
/* Given a pointer to a function or method, try to convert it into a
name and the appropriate line and source file. The caller passes
@@ -60,10 +65,9 @@ public:
private:
void toHex (void *p);
#if defined (HAVE_PIPE) && defined (HAVE_FORK)
- int pid;
+ pid_t pid;
int f_pipe[2], b_pipe[2];
FILE *b_pipe_fd;
int error;
#endif
};
-