Commit 0cf42edd by Jonathan Calmels

lxc_init: set the control terminal in the child session

parent a848f32a
......@@ -201,6 +201,9 @@ int main(int argc, char *argv[])
if (sid < 0)
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]);
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