The modifier Interrupt does not modify a procedure to catch an interrupt.
Original Reporter info from Mantis: helbig
-
Reporter name: Wolfgang Helbig
Original Reporter info from Mantis: helbig
- Reporter name: Wolfgang Helbig
Description:
I tried to catch a SIGINT signal with a procedure modified as an interrupt procedure. But it did not catch the signal.
Steps to reproduce:
{$ Mode ISO}
program interrupt(input, output);
var i: integer;
procedure catch; interrupt;
begin
i:=2
end;
begin
while i = 0 do ;
writeln(i);
end.
compile and run the above program and then press ^C. It should be caught by the procedure catch but it isn't.
$ interrupt
^C
$
Instead, it should write 0 on output!
Additional information:
kill -2 doesn't work either! But signal SIGINT is a signal, that can be caught!
Mantis conversion info:
- Mantis ID: 37756
- OS: OS X
- OS Build: 10.11
- Platform: Mac
- Version: 3.2.0
- Monitored by: » helbig (Wolfgang Helbig)