diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-18 22:03:48 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-18 22:03:48 +0000 |
commit | d7acf13023a4f35f7b20f53bc4ae41fe9ab6ba9c (patch) | |
tree | 5b1c876626bc53783e4530f7d3fef4eb8b71bd0b /sys | |
parent | a14f9efa6848f167f54dea3e3823b31dae1461c9 (diff) |
venti/srv: open /proc instead of #p
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/venti/srv/hproc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/venti/srv/hproc.c b/sys/src/cmd/venti/srv/hproc.c index 7a22ec251..d86386bd0 100644 --- a/sys/src/cmd/venti/srv/hproc.c +++ b/sys/src/cmd/venti/srv/hproc.c @@ -36,7 +36,7 @@ text(int pid) } memset(&debug.fhdr, 0, sizeof debug.fhdr); - snprint(buf, sizeof buf, "#p/%d/text", pid); + snprint(buf, sizeof buf, "/proc/%d/text", pid); fd = open(buf, OREAD); if(fd < 0) return -1; @@ -72,7 +72,7 @@ map(int pid) char buf[100]; Map *m; - snprint(buf, sizeof buf, "#p/%d/mem", pid); + snprint(buf, sizeof buf, "/proc/%d/mem", pid); mem = open(buf, OREAD); if(mem < 0) return nil; @@ -106,7 +106,7 @@ openfiles(void) char buf[4096]; int fd, n; - snprint(buf, sizeof buf, "#p/%d/fd", getpid()); + snprint(buf, sizeof buf, "/proc/%d/fd", getpid()); if((fd = open(buf, OREAD)) < 0){ dprint("open %s: %r\n", buf); return; |