Skip to content

confirmOnQuit causes brief hang on clean tree #5918

Description

@xkcd386at

Describe the bug

Setting confirmOnQuit: true causes lazygit to briefly hang, then put out a message saying "cannot kill child process" before exiting.

This does not happen if the repo has any modified files. Only when the repo is "clean".

To Reproduce

Steps to reproduce the behavior:

  1. Install version 0.64 (latest)
  2. add confirmOnQuit: true to config.yml
  3. open a clean repo
  4. type "q", hit "Enter" to confirm
  5. lazygit will pause a second or two, then print "cannot kill child process" before exiting

Expected behavior

No pause or spurious error message in step 5.

Screenshots

If applicable, add screenshots to help explain your problem.

Version info:

commit=v0.64.0, build date=2026-08-04T08:05:33Z, build source=binaryRelease, version=0.64.0, os=linux, arch=amd64, git version=2.55.0

Terminal info:

Manjaro XFCE4, xfce4-terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions