SCCS-vsn: old/init/init.c 5.8
SCCS-vsn: sbin/init/init.c 5.8
-static char sccsid[] = "@(#)init.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)init.c 5.8 (Berkeley) %G%";
#endif not lint
#include <signal.h>
#endif not lint
#include <signal.h>
-char shutfailm[] = "WARNING: Something is hung (wont die); ps axl advised\n";
+char shutfailm[] = "WARNING: Something is hung (won't die); ps axl advised\n";
dup2(0, 1);
dup2(0, 2);
execl(shell, minus, (char *)0);
dup2(0, 1);
dup2(0, 2);
execl(shell, minus, (char *)0);
exit(0);
}
while ((xpid = wait((int *)0)) != pid)
exit(0);
}
while ((xpid = wait((int *)0)) != pid)
pid = wait((int *)0);
if (pid == -1)
return;
pid = wait((int *)0);
if (pid == -1)
return;
- omask = sigblock(SIGHUP);
+ omask = sigblock(sigmask(SIGHUP));
for (ALL) {
/* must restart window system BEFORE emulator */
if (p->wpid == pid || p->wpid == -1)
for (ALL) {
/* must restart window system BEFORE emulator */
if (p->wpid == pid || p->wpid == -1)
p->xflag |= CHANGE;
SCPYN(p->comn, t->ty_getty);
}
p->xflag |= CHANGE;
SCPYN(p->comn, t->ty_getty);
}
- if (SCMPN(p->wcmd, t->ty_window)) {
+ if (SCMPN(p->wcmd, t->ty_window ? t->ty_window : "")) {
p->xflag |= WCHANGE|CHANGE;
SCPYN(p->wcmd, t->ty_window);
}
p->xflag |= WCHANGE|CHANGE;
SCPYN(p->wcmd, t->ty_window);
}
SCPYN(p->line, t->ty_name);
p->xflag |= FOUND|CHANGE;
SCPYN(p->comn, t->ty_getty);
SCPYN(p->line, t->ty_name);
p->xflag |= FOUND|CHANGE;
SCPYN(p->comn, t->ty_getty);
- if (strcmp(t->ty_window, "") != 0) {
+ if (t->ty_window && strcmp(t->ty_window, "") != 0) {
p->xflag |= WCHANGE;
SCPYN(p->wcmd, t->ty_window);
}
p->xflag |= WCHANGE;
SCPYN(p->wcmd, t->ty_window);
}
-#include <sys/ioctl.h>
-
dfork(p)
struct tab *p;
{
dfork(p)
struct tab *p;
{
-static char sccsid[] = "@(#)init.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)init.c 5.8 (Berkeley) %G%";
#endif not lint
#include <signal.h>
#endif not lint
#include <signal.h>
-char shutfailm[] = "WARNING: Something is hung (wont die); ps axl advised\n";
+char shutfailm[] = "WARNING: Something is hung (won't die); ps axl advised\n";
dup2(0, 1);
dup2(0, 2);
execl(shell, minus, (char *)0);
dup2(0, 1);
dup2(0, 2);
execl(shell, minus, (char *)0);
exit(0);
}
while ((xpid = wait((int *)0)) != pid)
exit(0);
}
while ((xpid = wait((int *)0)) != pid)
pid = wait((int *)0);
if (pid == -1)
return;
pid = wait((int *)0);
if (pid == -1)
return;
- omask = sigblock(SIGHUP);
+ omask = sigblock(sigmask(SIGHUP));
for (ALL) {
/* must restart window system BEFORE emulator */
if (p->wpid == pid || p->wpid == -1)
for (ALL) {
/* must restart window system BEFORE emulator */
if (p->wpid == pid || p->wpid == -1)
p->xflag |= CHANGE;
SCPYN(p->comn, t->ty_getty);
}
p->xflag |= CHANGE;
SCPYN(p->comn, t->ty_getty);
}
- if (SCMPN(p->wcmd, t->ty_window)) {
+ if (SCMPN(p->wcmd, t->ty_window ? t->ty_window : "")) {
p->xflag |= WCHANGE|CHANGE;
SCPYN(p->wcmd, t->ty_window);
}
p->xflag |= WCHANGE|CHANGE;
SCPYN(p->wcmd, t->ty_window);
}
SCPYN(p->line, t->ty_name);
p->xflag |= FOUND|CHANGE;
SCPYN(p->comn, t->ty_getty);
SCPYN(p->line, t->ty_name);
p->xflag |= FOUND|CHANGE;
SCPYN(p->comn, t->ty_getty);
- if (strcmp(t->ty_window, "") != 0) {
+ if (t->ty_window && strcmp(t->ty_window, "") != 0) {
p->xflag |= WCHANGE;
SCPYN(p->wcmd, t->ty_window);
}
p->xflag |= WCHANGE;
SCPYN(p->wcmd, t->ty_window);
}
-#include <sys/ioctl.h>
-
dfork(p)
struct tab *p;
{
dfork(p)
struct tab *p;
{