aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1995-04-10 00:01:01 +0000
committerNate Williams <nate@FreeBSD.org>1995-04-10 00:01:01 +0000
commitb6b718f3267dd0d193f00f8bac6752193d40b777 (patch)
treee84be50673597ed2af4ef8ed63dc6eadb986772e /gnu
parent9d9cea2bcef4ed6ddadcedc9daa32b49640882f3 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/gdb/infptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/gdb/gdb/infptrace.c b/gnu/usr.bin/gdb/gdb/infptrace.c
index d648e0a899759..cb3fd14b8de30 100644
--- a/gnu/usr.bin/gdb/gdb/infptrace.c
+++ b/gnu/usr.bin/gdb/gdb/infptrace.c
@@ -175,7 +175,7 @@ attach (pid)
int fd;
sprintf(procfile, "/proc/%d/ctl", pid);
- fd = open(procfile, O_RDWR, 0);
+ fd = open(procfile, O_WRONLY, 0);
if (fd < 0) {
perror_with_name ("open");
@@ -217,7 +217,7 @@ detach (signal)
int fd;
sprintf(procfile, "/proc/%d/ctl", inferior_pid);
- fd = open(procfile, O_RDWR, 0);
+ fd = open(procfile, O_WRONLY, 0);
if (fd < 0) {
perror_with_name ("open");