make things work on SunOS

This commit is contained in:
rsc 2004-04-20 02:03:38 +00:00
parent e637c944fe
commit a0f1e21ff9
19 changed files with 43 additions and 20 deletions

View file

@ -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;