aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-02-19 19:08:34 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-02-19 19:08:34 +0000
commitf5de4904552e26265371b02d35cdd635a502c775 (patch)
tree05782f47672c1eddfe699029cc3f9c03bb7cd957 /gdb/procfs.c
parent27648f269f318b48897163735a0254f3b799fbff (diff)
downloadgdb-f5de4904552e26265371b02d35cdd635a502c775.zip
gdb-f5de4904552e26265371b02d35cdd635a502c775.tar.gz
gdb-f5de4904552e26265371b02d35cdd635a502c775.tar.bz2
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.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 1897bf4..2e8e11f 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -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);