diff options
author | Stu Grossman <grossman@cygnus> | 1992-03-31 19:03:28 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-03-31 19:03:28 +0000 |
commit | fad3fc945a3730d8b17036b6f97131c7f95c20f3 (patch) | |
tree | 12e37ed6e72be09de1a6ab1a606b83bab3893eb3 /gdb/procfs.c | |
parent | 3b0b92207c8a65ad06a01a175124cd0b776f8963 (diff) | |
download | gdb-fad3fc945a3730d8b17036b6f97131c7f95c20f3.zip gdb-fad3fc945a3730d8b17036b6f97131c7f95c20f3.tar.gz gdb-fad3fc945a3730d8b17036b6f97131c7f95c20f3.tar.bz2 |
* procfs.c (open_proc_file): Disable inherit-on-fork flag so that
commands in .cshrc/.profile won't get traced.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 58e8878..04fed86 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -1238,8 +1238,12 @@ open_proc_file (pid, pip) sprintf (pip -> pathname, PROC_NAME_FMT, pid); if ((pip -> fd = open (pip -> pathname, O_RDWR)) >= 0) { + long pr_flags; + pip -> valid = 1; pip -> pid = pid; + pr_flags = PR_FORK; + (void) ioctl (pip -> fd, PIOCRESET, &pr_flags); } return (pip -> valid); } |