aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ed.c
diff options
context:
space:
mode:
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;