goto err1;
}
- if (ts->escape >= 1) {
- fprintf(stderr, "\n"
- "Connected to tty %1$d\n"
- "Type <Ctrl+%2$c q> to exit the console, "
- "<Ctrl+%2$c Ctrl+%2$c> to enter Ctrl+%2$c itself\n",
- ttynum, 'a' + escape - 1);
- }
-
- ret = setsid();
if (ret)
INFO("already group leader");
goto err4;
}
+ if (ts->escape >= 1) {
+ fprintf(stderr, "\n"
+ "Connected to tty %1$d\n"
+ "Type <Ctrl+%2$c q> to exit the console, "
+ "<Ctrl+%2$c Ctrl+%2$c> to enter Ctrl+%2$c itself\n",
+ ttynum, 'a' + escape - 1);
+ }
+
+ ret = setsid();
ret = lxc_mainloop(&descr, -1);
if (ret) {
ERROR("mainloop returned an error");