Skip to content

confirmOnQuit causes brief hang on clean tree #5918

Closed

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

Activity

  1. stefanhaller commented on Aug 12, 2026

    @stefanhaller
    Collaborator

    Thanks for the report; this is a regression in 0.64.0, it worked before. Here's a fix: #5919.

    "A second or two" is not quite accurate, it should be exactly 3 seconds. And what's funny: we even have a test for this exact scenario, but it didn't fail with 0.64.0, it just started to take 3.1 seconds instead of 0.1s; nobody noticed this.

  2. xkcd386at commented on Aug 12, 2026

    @xkcd386at
    Author

    great; thanks!

  3. added a commit that references this issue on Aug 12, 2026
    4b22b84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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