Noticing defunct processes when using pipes since new pvxplus upgrade. I found the 'WP' parameter helps.
So I set_param 'WP'=1 as my default.
Just I have one weird scenario. with this TAC if I dont set 'WP'=0 the close will hang indefinitely.
So after a few experiments I got this to work:
! This opens the logfile
OPEN:
let PRODLOG=unt; open (PRODLOG,err=ERROR)"< tac /tmp/albertibuffer_ProdErr.csv 2>/dev/null"
READ_CYCLE:
! Do my READ (PRODLOG) loop, I only want a certain # only (so tac stays incomplete)
DONE:
set_param 'WP'=0 ! PVXPLUS setting to wait for pipe to end
if PRODLOG then close (PRODLOG); let PRODLOG=0
wait 1 ! This clears zombie
set_param 'WP'=1 ! PVXPLUS setting not to wait for pipe to end affected old <date routines but lets see if this causes issues
wait 1 ! This one ACTUALLY Clears Zombie
Do I really need this Apollo 13 ending sequence?
Maybe I should use a different routine to simplify it just I am used to using pipes like this with old PVX 5.14 with zero issues.
Thanks