Pode icon indicating copy to clipboard operation
Pode copied to clipboard

-DisableTermination this parameter does not work

Open ericxin1982 opened this issue 4 years ago • 1 comments

image image

I have put disabletermination there, but it seems not work as I expected, I remembered 2.5.2 works fine.

Thanks Eric Xin

ericxin1982 avatar Feb 14 '22 02:02 ericxin1982

Hi @ericxin1982,

If you mean that Ctrl-C still terminates, then yes that is weird. I've gone back a few Pode versions and it does it - in 5.1 and 7 🤔

I haven't touched that logic in a long time, so I'm wondering if something in PowerShell has changed for Ctrl-C. The switch does what it's supposed to, and Ctrl-C is no longer registered (hence why Terminating... isn't appearing), but yet it seems PowerShell is forcibly killing the process anyway!

I've had a look, but I can't see an easy way around it; but I'll continue looking though.

Badgerati avatar Feb 14 '22 20:02 Badgerati