PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ handleInterrupt()

static void handleInterrupt ( int  sig)
static

Definition at line 115 of file postgis_module.c.

References coreIntHandler, and lwgeom_request_interrupt().

Referenced by _PG_init().

116 {
117  /* NOTE: printf here would be dangerous, see
118  * https://trac.osgeo.org/postgis/ticket/3644
119  *
120  * TODO: block interrupts during execution, to fix the problem
121  */
122  /* printf("Interrupt requested\n"); fflush(stdout); */
123 
124 #if POSTGIS_GEOS_VERSION >= 34
125  GEOS_interruptRequest();
126 #endif
127 
128  /* request interruption of liblwgeom as well */
130 
131  if ( coreIntHandler ) {
132  (*coreIntHandler)(sig);
133  }
134 }
static pqsigfunc coreIntHandler
void lwgeom_request_interrupt(void)
Request interruption of any running code.
Definition: lwgeom_api.c:824
Here is the call graph for this function:
Here is the caller graph for this function: