]> granicus.if.org Git - postgis/commitdiff
Do not call printf from interrupt handler, fixing deadlocks
authorSandro Santilli <strk@kbt.io>
Tue, 27 Sep 2016 08:04:34 +0000 (08:04 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 27 Sep 2016 08:04:34 +0000 (08:04 +0000)
Closes #3644

git-svn-id: http://svn.osgeo.org/postgis/trunk@15156 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis_module.c

index 7f2e35125c65b7b50d15f580adcc9f324c538ad3..e107098c7f9a7699350324624adef7c399befb6b 100644 (file)
@@ -127,7 +127,12 @@ _PG_fini(void)
 static void
 handleInterrupt(int sig)
 {
-  printf("Interrupt requested\n"); fflush(stdout);
+  /* NOTE: printf here would be dangerous, see
+   * https://trac.osgeo.org/postgis/ticket/3644
+   *
+   * TODO: block interrupts during execution, to fix the problem
+   */
+  /* printf("Interrupt requested\n"); fflush(stdout); */
 
 #if POSTGIS_GEOS_VERSION >= 34
   GEOS_interruptRequest();