* Fix to init.c from Stuart Menefy <Stuart.Menefy@st.com> so that
it always sets the controlling terminal before running any programs -Erik
This commit is contained in:
parent
72965e3454
commit
b02c54ebee
1
init.c
1
init.c
@ -411,6 +411,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
|
|||||||
dup2(fd, 0);
|
dup2(fd, 0);
|
||||||
dup2(fd, 1);
|
dup2(fd, 1);
|
||||||
dup2(fd, 2);
|
dup2(fd, 2);
|
||||||
|
ioctl(0, TIOCSCTTY, 0);
|
||||||
tcsetpgrp(0, getpgrp());
|
tcsetpgrp(0, getpgrp());
|
||||||
set_term(0);
|
set_term(0);
|
||||||
|
|
||||||
|
@ -411,6 +411,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
|
|||||||
dup2(fd, 0);
|
dup2(fd, 0);
|
||||||
dup2(fd, 1);
|
dup2(fd, 1);
|
||||||
dup2(fd, 2);
|
dup2(fd, 2);
|
||||||
|
ioctl(0, TIOCSCTTY, 0);
|
||||||
tcsetpgrp(0, getpgrp());
|
tcsetpgrp(0, getpgrp());
|
||||||
set_term(0);
|
set_term(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user