View Issue Details

IDProjectCategoryView StatusLast Update
0037756FPCCompilerpublic2020-09-16 19:26
Reporterhelbig Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionwon't fix 
PlatformMacOSOS X 
Product Version3.2.0 
Summary0037756: The modifier Interrupt does not modify a procedure to catch an interrupt.
DescriptionI 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;
   while i = 0 do ;

compile and run the above program and then press ^C. It should be caught by the procedure catch but it isn't.
$ interrupt

Instead, it should write 0 on output!

Additional Informationkill -2 doesn't work either! But signal SIGINT is a signal, that can be caught!
TagsNo tags attached.
Fixed in Revision
Attached Files



2020-09-16 19:26

administrator   ~0125572

The interrupt keyword tells the compiler only that it should generate a stack frame which is suitable for interrupt handler.

Issue History

Date Modified Username Field Change
2020-09-16 18:54 helbig New Issue
2020-09-16 19:26 Florian Assigned To => Florian
2020-09-16 19:26 Florian Status new => resolved
2020-09-16 19:26 Florian Resolution open => won't fix
2020-09-16 19:26 Florian FPCTarget => -
2020-09-16 19:26 Florian Note Added: 0125572