diff --git a/src/bwrap.cpp b/src/bwrap.cpp index 7a138a2..f9eeffb 100644 --- a/src/bwrap.cpp +++ b/src/bwrap.cpp @@ -125,7 +125,10 @@ std::vector detect_bwrap_unshare_args() { std::vector build_bwrap_args(const std::string& root, const std::vector& command) { - std::vector args = {"bwrap", "--die-with-parent", "--new-session"}; + // --new-session detaches from the controlling terminal, which breaks job + // control for an interactive foreground shell ("can't access tty"). Re-enable + // once background/daemonized runs are implemented, where that's the point. + std::vector args = {"bwrap", "--die-with-parent"}; auto unshare_args = detect_bwrap_unshare_args(); bool has_pid_ns = false;