* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / inflow.c
index 095614215d93f0337cf2fe5f8e9c578a6c0a0a71..353c6c4ee3f417c72515397fdb3f257c5ef6ed4c 100644 (file)
@@ -533,8 +533,7 @@ kill_command (arg, from_tty)
      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.");
@@ -578,7 +577,7 @@ clear_sigint_trap()
   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
This page took 0.024067 seconds and 4 git commands to generate.