Unverified Commit 7754c373 by Jonathan Calmels Committed by Christian Brauner

lxc_init: set the control terminal in the child session

parent 06485e37
......@@ -193,7 +193,8 @@ int main(int argc, char *argv[])
if (sid < 0)
DEBUG("Failed to make child session leader");
NOTICE("About to exec '%s'", aargv[0]);
if (ioctl(STDIN_FILENO, TIOCSCTTY, 0) < 0)
DEBUG("Failed to set controlling terminal");
ret = execvp(aargv[0], aargv);
ERROR("Failed to exec: '%s' : %s", aargv[0], strerror(errno));
......
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