mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
sentinel
This commit is contained in:
parent
82908b6586
commit
bd18885d96
1 changed files with 3 additions and 3 deletions
|
@ -204,12 +204,12 @@ spawn(ScreenInfo *s)
|
||||||
signal(SIGTERM, SIG_DFL);
|
signal(SIGTERM, SIG_DFL);
|
||||||
signal(SIGHUP, SIG_DFL);
|
signal(SIGHUP, SIG_DFL);
|
||||||
if(termprog != NULL){
|
if(termprog != NULL){
|
||||||
execl(shell, shell, "-c", termprog, 0);
|
execl(shell, shell, "-c", termprog, nil);
|
||||||
fprintf(stderr, "rio: exec %s", shell);
|
fprintf(stderr, "rio: exec %s", shell);
|
||||||
perror(" failed");
|
perror(" failed");
|
||||||
}
|
}
|
||||||
execlp("9term", "9term", scrolling ? "-ws" : "-w", 0);
|
execlp("9term", "9term", scrolling ? "-ws" : "-w", nil);
|
||||||
execlp("xterm", "xterm", "-ut", 0);
|
execlp("xterm", "xterm", "-ut", nil);
|
||||||
perror("rio: exec 9term/xterm failed");
|
perror("rio: exec 9term/xterm failed");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue