Sun Feb 19 11:05:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
authorPeter Schauer <Peter.Schauer@mytum.de>
Sun, 19 Feb 1995 19:08:34 +0000 (19:08 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Sun, 19 Feb 1995 19:08:34 +0000 (19:08 +0000)
* procfs.c (unconditionally_kill_inferior):  Don't issue a PIOCKILL
in addition to a PIOCSSIG to kill the inferior.

gdb/ChangeLog
gdb/procfs.c

index 1bc7ccb0ebacae9733b61d95077fb29bd8569630..b0972d8168dbd62da6500f920c1eef79f3ec4ed9 100644 (file)
@@ -1,3 +1,8 @@
+Sun Feb 19 11:05:28 1995  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
+
+       * procfs.c (unconditionally_kill_inferior):  Don't issue a PIOCKILL
+       in addition to a PIOCSSIG to kill the inferior.
+
 Thu Feb 16 15:06:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
 
        * parse.c (follow_types):  Given (TYPE[]) (i.e. with no length),
index 1897bf421d416af29113548190df8ca6d11b43b0..2e8e11f80bc91251676b86e7f6cfb1c1a7512453 100644 (file)
@@ -1250,12 +1250,11 @@ unconditionally_kill_inferior (pi)
   ppid = pi->prstatus.pr_ppid;
 
   signo = SIGKILL;
-  ioctl (pi->fd, PIOCKILL, &signo);
 
 #ifdef PROCFS_NEED_PIOCSSIG_FOR_KILL
-  /* Alpha OSF/1 procfs needs an additional PIOCSSIG call with
-     a SIGKILL signal to kill the inferior, otherwise it might remain
-     stopped with a pending SIGKILL.
+  /* Alpha OSF/1 procfs needs a PIOCSSIG call with a SIGKILL signal
+     to kill the inferior, otherwise it might remain stopped with a
+     pending SIGKILL.
      We do not check the result of the PIOCSSIG, the inferior might have
      died already.  */
   {
@@ -1269,6 +1268,8 @@ unconditionally_kill_inferior (pi)
     newsiginfo.si_uid = getuid ();
     ioctl (pi->fd, PIOCSSIG, &newsiginfo);
   }
+#else
+  ioctl (pi->fd, PIOCKILL, &signo);
 #endif
 
   close_proc_file (pi);
This page took 0.038706 seconds and 4 git commands to generate.