Hello Folks,
Am 25.06.2020 um 22:03 schrieb Patrik Schindler <poc@xxxxxxxxxx>:
Thanks for any pointers to further documentation, or a short explanation.
Thank you for all your valuable input!
@Alan, @Carel, @Jon: *DTAQ adds more complexity than I want.
@Paul, @Charles: %SHTDN is a very nice one, I'll keep this in mind for newer projects. Unfortunately, it's not available with V4. Yes, I know, I wasn't mentioning this in my initial post. :-)
@Charles: ON-EXIT is a really nice one, I know that exit handler thing from C. Good to know that it's available in RPG, also (but not in V4, as I checked).
@Niels: I expected signals to work "as usual" in C. My question was regarding ILE RPG.
@Thomas: I guess RTVJOBA value ENDSTS works with V4, so this sounds like a favourite to me.
@Scott, thanks for this implicit mentioning of SIGTERM. Do you have some pointers to more information about this facility regarding ILE and RPG (not PASE!)? I know it from Linux programming, and I like it for "no polling needed". Additional: pwrdwnsys/endsbs *immed (as opposed to *cntld) does what to the processes? Kill -9?
Thanks again, folks!
:wq! PoC
PGP-Key: DDD3 4ABF 6413 38DE -
https://www.pocnet.net/poc-key.asc
As an Amazon Associate we earn from qualifying purchases.