stupid signal fix
This commit is contained in:
parent
f52e90ebe8
commit
1a24aaca91
1 changed files with 10 additions and 1 deletions
|
|
@ -57,8 +57,17 @@ rcstart(int argc, char **argv, int *pfd, int *tfd)
|
||||||
*
|
*
|
||||||
* Can't disable because will be inherited by other programs
|
* Can't disable because will be inherited by other programs
|
||||||
* like if you run an xterm from the prompt, and then xterm's
|
* like if you run an xterm from the prompt, and then xterm's
|
||||||
* resizes won't get handled right. Sigh.
|
* resizes won't get handled right. Sigh.
|
||||||
|
*
|
||||||
|
* Can't not disable because when we stty below we'll get a
|
||||||
|
* signal, which will drop us into the thread library note handler,
|
||||||
|
* which will get all confused because we just forked and thus
|
||||||
|
* have an unknown pid.
|
||||||
|
*
|
||||||
|
* So disable it internally. ARGH!
|
||||||
*/
|
*/
|
||||||
|
notifyoff("sys: window size change");
|
||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
switch(pid){
|
switch(pid){
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue