[Coco] OS9 Programming question

Robert Gault robert.gault at att.net
Fri Jan 18 12:14:35 EST 2013


Bill Pierce wrote:
>
> Hi guys,
> I have an OS9 program that runs a loop that forks several other programs in succession in overlay windows. Each program sets an intercept that catches the break key and terminates on break and goes to the next program until the loop is finished. When the loop exits and returns to the main window, all the "break" keys that were pressed in the other programs all echo to the main window. The screen redraws for each break key that was pressed for each of the programs that was run.
> Is there some way to clear those signals so they don't come back to the main program? The main program has it's own intercept which is reset on return, but it doesn't seem to do any good in this case. If I don't "break" the other programs and let them finish, the program runs fine on return.
> All the program are written in C and Asm.
>
> Any suggestions?
> Bill P
>

The OS-9 manual says an intercept routine prevents a process from terminating on 
a signal but you say you want the process to be killed. Do you also want the 
overlay windows to be removed? What happens if the forked programs do not have 
intercept routines?




More information about the Coco mailing list