aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acid
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-05-05 04:22:16 +0000
committerrsc <devnull@localhost>2004-05-05 04:22:16 +0000
commit2e965b3324b32be00a2193bf304dcb936f02824b (patch)
treec183e68a04ee42308f493face299cb4cc4c559ec /src/cmd/acid
parent4f48d1d4f72b1986ba6df3ccd9db62cfa1ef3df9 (diff)
downloadplan9port-2e965b3324b32be00a2193bf304dcb936f02824b.tar.gz
plan9port-2e965b3324b32be00a2193bf304dcb936f02824b.tar.bz2
plan9port-2e965b3324b32be00a2193bf304dcb936f02824b.zip
various bug fixes
Diffstat (limited to 'src/cmd/acid')
-rw-r--r--src/cmd/acid/proc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cmd/acid/proc.c b/src/cmd/acid/proc.c
index 2c286e15..66996345 100644
--- a/src/cmd/acid/proc.c
+++ b/src/cmd/acid/proc.c
@@ -30,7 +30,7 @@ sproc(int xpid)
correg = nil;
if(mapproc(xpid, cormap, &correg) < 0)
- error("setproc %d: %r", pid);
+ error("setproc %d: %r", xpid);
/* XXX check text file here? */
@@ -165,6 +165,17 @@ install(int pid)
s->v->set = 1;
}
+static int
+installed(int pid)
+{
+ int i;
+
+ for(i=0; i<Maxproc; i++)
+ if(ptab[i].pid == pid)
+ return 1;
+ return 0;
+}
+
void
deinstall(int pid)
{