procfs_create_inferior PARAMS ((char *, char *, char **));
static void
-procfs_notice_signals PARAMS ((pid_t pid));
+procfs_notice_signals PARAMS ((int pid));
static struct procinfo *
find_procinfo PARAMS ((pid_t pid, int okfail));
SYNOPSIS
- static void procfs_notice_signals (pid_t pid);
+ static void procfs_notice_signals (int pid);
DESCRIPTION
static void
procfs_notice_signals (pid)
- pid_t pid;
+ int pid;
{
int signo;
struct procinfo *pi;
so that any grand-children start with all tracing flags set.
*/
+#ifdef SYS_sproc
+
static void
procfs_set_sproc_trap (pi)
struct procinfo *pi;
error ("PIOCGEXIT failed");
}
-#ifdef SYS_sproc
praddset (&exitset, SYS_sproc);
-#endif
if (ioctl (pi->fd, PIOCSEXIT, &exitset) < 0)
{
#endif
#endif
}
+#endif /* SYS_sproc */
/* Fork an inferior process, and start debugging it with /proc. */
/* Setup traps on exit from sproc() */
- procfs_set_sproc_trap(current_procinfo);
+#ifdef SYS_sproc
+ procfs_set_sproc_trap (current_procinfo);
+#endif
proceed ((CORE_ADDR) -1, 0, 0);
}