Beispiel #1
0
static void
handleInterrupt(int sig)
{
  printf("Interrupt requested\n"); fflush(stdout);

#if POSTGIS_GEOS_VERSION >= 34 
  GEOS_interruptRequest();
#endif

  /* TODO: request interruption of liblwgeom as well ? */

  if ( coreIntHandler ) {
    (*coreIntHandler)(sig);
  }
}
Beispiel #2
0
 static void
 interruptNow()
 {
     GEOS_interruptRequest();
 }