Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.53k stars 572 forks source link

Terminate all but shell: GetProcesses fails #2394

Open sryze opened 2 years ago

sryze commented 2 years ago

Versions

ConEmu build: ConEmu 210912 x64 OS version: Windows 10 Pro x64 10.0.19043 Build 19043

Used shell version: Git Bash

Problem description

When I use the "Terminate all processes but shell" command, it fails

Steps to reproduce

  1. Bind the command to Ctrl+Alt+C
  2. Run some process
  3. Press Ctrl+Alt+C

Actual results

A popup window appears:

Capture

GetProcesses fails

Expected results

Expected ConEmu to terminate the running process

Additional files

Settings, screenshots, logs, etc.

Maximus5 commented 2 years ago

Do you use connector to run git bash?

Maximus5 commented 2 years ago

Need more info, screenshots may be. Do you mean "Kill all but shell" command, right?

sryze commented 2 years ago

What do you mean by connector?

This is how my Git Bash task looks:

screenshot

Do you mean "Kill all but shell" command, right?

Yes

image

hasancemcerit commented 2 years ago

@sryze I've had similar issue. CTRL+C was killing all, including shell. I now have my task definition as below, and working fine for me.

Make sure you have Add %ConEmuDir% to %PATH% and Add %ConEmuBaseDir% to %PATH% checked under Startup/Environment.

%ConEmuBaseDirShort%\conemu-msys2-64.exe /usr/bin/bash.exe -l -i -new_console:an