So I have a case where I have a sent packet and need to abort it. But I cannot on OS4 since they removed the function to do so. Good effort.
My use case is that I am waiting for a set of signals and also for a key press on the CLI. As my main code waits in a loop and then processes each signal case. So it would multitask I set up a DOS packet that I send off to read a character which is collected when the signal comes in.
I've found in one situation that the program will need to quit, but the packet is still hanging in there. And I can't abort it. Is there any way to abort a DOS packet?
I tried sending my input channel a character to satisfy the packet. But this just resulted in a character being printed. And when it quit the CON handler crashed indicating the packet wasn't sent back.
Is there another way to check for and clear a key press read without polling?