pipe after starting the child.
2006-03-20 Mark Mitchell <mark@codesourcery.com>
+ * libiberty/pex-common.c (pex_run): Close the write end of the
+ pipe after starting the child.
+
* gdb/config/arm/armv7m.mt (TDEPFILES): Add prologue-value.o.
2006-03-21 Paul Brook <paul@codesourcery.com>
in = -1;
out = -1;
errdes = -1;
+ p[READ_PORT] = -1;
+ p[WRITE_PORT] = -1;
outname = (char *) orig_outname;
outname_allocated = 0;
pid = obj->funcs->exec_child (obj, flags, executable, argv, in, out, errdes,
&errmsg, err);
+ if (p[WRITE_PORT] != -1)
+ obj->funcs->close (obj, p[WRITE_PORT]);
if (pid < 0)
goto error_exit;