(Closes: #659011).
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
}
/* we want to exit the console with Ctrl+a q */
- if (c == my_args.escape) {
+ if (c == my_args.escape && !wait4q) {
wait4q = !wait4q;
return 0;
}
if (err)
goto out;
- fprintf(stderr, "\nType <Ctrl+%c q> to exit the console\n",
+ fprintf(stderr, "\n\
+Type <Ctrl+%1$c q> to exit the console, \
+<Ctrl+%1$c Ctrl+%1$c> to enter Ctrl+%1$c itself\n",
'a' + my_args.escape - 1);
err = setsid();