in reply to Zombie process after open pipe and SIGINT on Windows

Inquisitorial question: What does open return? Normally this should be the PID of the subprocess in this case – if you had success. By the way, I think you need this (because there is no tail under Windows):

Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <Encoding>] [-AsByteStream] [-Stream <String>] [<CommonParameters>]

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^2: Zombie process after open pipe and SIGINT on Windows
by kaldor (Beadle) on Jan 24, 2023 at 19:45 UTC
    'open' returns the PID, as it should.
    I'm actually using 'tail' from busybox-w32 for this test.