diff options
author | rsc <devnull@localhost> | 2004-04-19 23:03:46 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-19 23:03:46 +0000 |
commit | b4a659b6cffd452fbdf54a81210f0540426b678a (patch) | |
tree | 953c3be9187fb1347b24d4c5f570a5d7a537e3a1 /src/cmd/acid | |
parent | 98cd2746cff82ab359de6d6ce2c3f87b2c4166a8 (diff) | |
download | plan9port-b4a659b6cffd452fbdf54a81210f0540426b678a.tar.gz plan9port-b4a659b6cffd452fbdf54a81210f0540426b678a.tar.bz2 plan9port-b4a659b6cffd452fbdf54a81210f0540426b678a.zip |
clean up when finished.
Diffstat (limited to 'src/cmd/acid')
-rw-r--r-- | src/cmd/acid/main.c | 12 | ||||
-rw-r--r-- | src/cmd/acid/mkfile | 1 | ||||
-rw-r--r-- | src/cmd/acid/proc.c | 3 |
3 files changed, 9 insertions, 7 deletions
diff --git a/src/cmd/acid/main.c b/src/cmd/acid/main.c index 559839f3..5e68e466 100644 --- a/src/cmd/acid/main.c +++ b/src/cmd/acid/main.c @@ -112,10 +112,12 @@ main(int argc, char *argv[]) l = look("acidmap"); if(l && l->proc) { - n = an(ONAME, ZN, ZN); - n->sym = l; - n = an(OCALL, n, ZN); - execute(n); + if(setjmp(err) == 0){ + n = an(ONAME, ZN, ZN); + n->sym = l; + n = an(OCALL, n, ZN); + execute(n); + } } interactive = 1; @@ -146,12 +148,14 @@ main(int argc, char *argv[]) static int attachfiles(int argc, char **argv) { + int pid; char *s; int i, omode; Fhdr *hdr; Lsym *l; Value *v; + pid = 0; interactive = 0; if(setjmp(err)) return -1; diff --git a/src/cmd/acid/mkfile b/src/cmd/acid/mkfile index e372fd88..35c938c1 100644 --- a/src/cmd/acid/mkfile +++ b/src/cmd/acid/mkfile @@ -18,7 +18,6 @@ OFILES=$UOFILES y.tab.$O YFILES=dbg.y HFILES=acid.h -BIN=/home/rsc/bin SHORTLIB=mach regexp9 bio 9 diff --git a/src/cmd/acid/proc.c b/src/cmd/acid/proc.c index 3b862aa9..2c286e15 100644 --- a/src/cmd/acid/proc.c +++ b/src/cmd/acid/proc.c @@ -51,8 +51,7 @@ sproc(int xpid) int nproc(char **argv) { - char buf[128]; - int pid, i, fd; + int pid, i; pid = fork(); switch(pid) { |