lima-vm / lima-vm/lima

limactl start prevents the terminal from closing after the shell exits

Open
#5,083 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

_Disclaimer: An AI helped me debug this. I massaged it a bit by hand though._

### Steps

1. In kitty (a terminal that closes on pty EOF), run `limactl start `.
2. `exit`.

The shell exits and is reaped, but the kitty terminal window stays open.

### Observations

- `lsof /dev/pts/N` and `sudo fuser /dev/pts/N` show no holder of the pty.
- `kill $(pgrep -x qemu-system-x86)` releases the pty; the window closes immediately.
- Redirecting `limactl start`'s stdio (`log 2>&1`) does not change the behavior.
- `setsid limactl start ` avoids it; the window closes on exit.

### Environment

- lima: 2.1.2
- qemu: 7.0.0 (Debian 1:7.0+dfsg-7ubuntu1~jammy1.0)
- host: Linux, kitty, fish

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.