aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ed.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-20 02:03:38 +0000
committerrsc <devnull@localhost>2004-04-20 02:03:38 +0000
commita0f1e21ff939612898d63ae2245e47dffc1a8153 (patch)
tree581f62db3bad2c54d60cb54b6e577787f55071af /src/cmd/ed.c
parente637c944febf271252e59742aa108d6e0a527eb7 (diff)
downloadplan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.tar.gz
plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.tar.bz2
plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.zip
make things work on SunOS
Diffstat (limited to 'src/cmd/ed.c')
-rw-r--r--src/cmd/ed.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/ed.c b/src/cmd/ed.c
index 1c1639b9..d947d899 100644
--- a/src/cmd/ed.c
+++ b/src/cmd/ed.c
@@ -697,6 +697,8 @@ notifyf(void *a, char *s)
noted(NDFLT);
rescue();
}
+ if(strstr(s, "child"))
+ noted(NCONT);
fprint(2, "ed: note: %s\n", s);
abort();
}
@@ -928,7 +930,8 @@ callunix(void)
*p = 0;
pid = fork();
if(pid == 0) {
- execl("/bin/rc", "rc", "-c", buf, 0);
+ execlp("rc", "rc", "-c", buf, 0);
+ sysfatal("exec failed: %r");
exits("execl failed");
}
waiting = 1;