aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auxstats
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-23 17:47:02 +0000
committerrsc <devnull@localhost>2004-04-23 17:47:02 +0000
commit272fd660b41d7ec793bc9d8972878510f3b66055 (patch)
tree001414a265fc069f713ef738925f0f6beee87dbd /src/cmd/auxstats
parente18c1340502932dfefda01e309567774e9fce599 (diff)
downloadplan9port-272fd660b41d7ec793bc9d8972878510f3b66055.tar.gz
plan9port-272fd660b41d7ec793bc9d8972878510f3b66055.tar.bz2
plan9port-272fd660b41d7ec793bc9d8972878510f3b66055.zip
small bug fixes
Diffstat (limited to 'src/cmd/auxstats')
-rw-r--r--src/cmd/auxstats/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/auxstats/main.c b/src/cmd/auxstats/main.c
index a3624824..d1c35561 100644
--- a/src/cmd/auxstats/main.c
+++ b/src/cmd/auxstats/main.c
@@ -19,7 +19,7 @@ notifyf(void *v, char *msg)
{
USED(v);
- if(strcmp(msg, "child") == 0)
+ if(strstr(msg, "child"))
noted(NCONT);
postnote(PNPROC, pid, msg);
exits(nil);
@@ -57,14 +57,14 @@ main(int argc, char **argv)
sysfatal("fork: %r");
case 0:
rfork(RFNOTEG);
- execlp("ssh", "ssh", "-C", sys, exe, nil);
- _exit(12);
+ execlp("ssh", "ssh", "-nTC", sys, exe, nil);
+ _exit(97);
default:
if((w = wait()) == nil)
sysfatal("wait: %r");
if(w->pid != pid)
sysfatal("wait got wrong pid");
- if(atoi(w->msg) == 12)
+ if(atoi(w->msg) == 97)
sysfatal("exec ssh failed");
free(w);
fprint(2, "stats: %s hung up; sleeping 60\n", sys);