char *arg;
int from_tty;
{
- /* Shouldn't this be target_has_execution? FIXME. */
- if (inferior_pid == 0)
+ if (!target_has_execution)
error ("The program is not being run.");
if (!query ("Kill the program being debugged? "))
error ("Not confirmed.");
signal (SIGINT, osig);
}
\f
-#if defined (SIGIO) && defined (FASYNC) && defined (FD_SET)
+#if defined (SIGIO) && defined (FASYNC) && defined (FD_SET) && defined (F_SETOWN)
static void (*old_sigio) ();
static void