{
int wait_retval;
- /* /proc file not found; presumably child has terminated. */
- wait_retval = ::wait (&wstat); /* "wait" for the child's exit. */
+ /* /proc file not found; presumably child has terminated. Wait
+ for the child's exit. */
+ wait_retval = gdb::wait (&wstat);
/* Wrong child? */
if (wait_retval != inf->pid)
}
else
{
- int temp = ::wait (&wstat);
+ int temp = gdb::wait (&wstat);
/* FIXME: shouldn't I make sure I get the right
event from the right process? If (for
ret = gdb::waitpid (pi->pid, &status, 0);
#else
- wait (NULL);
+ gdb::wait (NULL);
#endif
}
}
return gdb::handle_eintr (-1, ::open, pathname, flags);
}
+inline pid_t
+wait (int *wstatus)
+{
+ return gdb::handle_eintr (-1, ::wait, wstatus);
+}
+
inline int
close (int fd)
{