summaryrefslogtreecommitdiffstats
path: root/src/cmd/acid/proc.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-11-28 00:39:42 +0000
committerrsc <devnull@localhost>2005-11-28 00:39:42 +0000
commit689be541258e9e701a600d6bd2fc3e5241726867 (patch)
treea0ab190a3c4a0c7794672b76f2cc06ef25846d1a /src/cmd/acid/proc.c
parent77fd60a177e50b398f1f235bcc47cbfc92e0fa80 (diff)
downloadplan9port-689be541258e9e701a600d6bd2fc3e5241726867.tar.gz
plan9port-689be541258e9e701a600d6bd2fc3e5241726867.zip
various fixes
Diffstat (limited to 'src/cmd/acid/proc.c')
-rw-r--r--src/cmd/acid/proc.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/cmd/acid/proc.c b/src/cmd/acid/proc.c
index 0ae5a5bb..298e4351 100644
--- a/src/cmd/acid/proc.c
+++ b/src/cmd/acid/proc.c
@@ -88,6 +88,7 @@ nproc(char **argv)
fatal("new: exec %s: %r");
default:
install(pid);
+ msg(pid, "attached");
msg(pid, "waitstop");
notes(pid);
sproc(pid);
@@ -242,21 +243,6 @@ msg(int pid, char *msg)
char *
getstatus(int pid)
{
- int fd;
- char *p;
-
- static char buf[128];
-
- sprint(buf, "/proc/%d/status", pid);
- fd = open(buf, OREAD);
- if(fd < 0)
- error("open %s: %r", buf);
- read(fd, buf, sizeof(buf));
- close(fd);
- p = buf+56+12; /* Do better! */
- while(*p == ' ')
- p--;
- p[1] = '\0';
- return buf+56; /* ditto */
+ return "unknown";
}