PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ handleInterrupt()

static void handleInterrupt ( int  sig)
static

Definition at line 89 of file postgis_module.c.

References coreIntHandler, and lwgeom_request_interrupt().

Referenced by _PG_init().

90 {
91  /* NOTE: printf here would be dangerous, see
92  * https://trac.osgeo.org/postgis/ticket/3644
93  *
94  * TODO: block interrupts during execution, to fix the problem
95  */
96  /* printf("Interrupt requested\n"); fflush(stdout); */
97 
98  GEOS_interruptRequest();
99 
100  /* request interruption of liblwgeom as well */
102 
103  if ( coreIntHandler ) {
104  (*coreIntHandler)(sig);
105  }
106 }
static pqsigfunc coreIntHandler
void lwgeom_request_interrupt(void)
Request interruption of any running code.
Definition: lwgeom_api.c:718
Here is the call graph for this function:
Here is the caller graph for this function: