PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ handleInterrupt()

static void handleInterrupt ( int  sig)
static

Definition at line 124 of file postgis_module.c.

References coreIntHandler, and lwgeom_request_interrupt().

Referenced by _PG_init().

125 {
126  /* NOTE: printf here would be dangerous, see
127  * https://trac.osgeo.org/postgis/ticket/3644
128  *
129  * TODO: block interrupts during execution, to fix the problem
130  */
131  /* printf("Interrupt requested\n"); fflush(stdout); */
132 
133 #if POSTGIS_GEOS_VERSION >= 34
134  GEOS_interruptRequest();
135 #endif
136 
137  /* request interruption of liblwgeom as well */
139 
140  if ( coreIntHandler ) {
141  (*coreIntHandler)(sig);
142  }
143 }
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: