Unverified Commit ba715de0 by Christian Brauner Committed by GitHub

Merge pull request #1933 from 3XX0/init-control-tty

lxc_init: set the control terminal in the child session
parents a848f32a 0cf42edd
...@@ -201,6 +201,9 @@ int main(int argc, char *argv[]) ...@@ -201,6 +201,9 @@ int main(int argc, char *argv[])
if (sid < 0) if (sid < 0)
DEBUG("Failed to make child session leader"); DEBUG("Failed to make child session leader");
if (ioctl(STDIN_FILENO, TIOCSCTTY, 0) < 0)
DEBUG("Failed to set controlling terminal");
NOTICE("Exec'ing \"%s\"", my_args.argv[0]); NOTICE("Exec'ing \"%s\"", my_args.argv[0]);
ret = execvp(my_args.argv[0], my_args.argv); ret = execvp(my_args.argv[0], my_args.argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment