Index: /branches/eam_branches/relphot.20210521/src/GridOps.c
===================================================================
--- /branches/eam_branches/relphot.20210521/src/GridOps.c	(revision 41631)
+++ /branches/eam_branches/relphot.20210521/src/GridOps.c	(revision 41632)
@@ -19,13 +19,17 @@
 static int                 NGridCorr = 0;
 
-// PS1: # define NX_CHIP 4900
-// PS1: # define NY_CHIP 4900
-// PS1: # define NX_BIN 16
-// PS1: # define NY_BIN 16
-
+# if (1)
+/* PS1 / PS2 values */
+# define NX_CHIP 4900
+# define NY_CHIP 4900
+# define NX_BIN 16
+# define NY_BIN 16
+# else
+/* test values */
 # define NX_CHIP 1000
 # define NY_CHIP 1000
 # define NX_BIN 2
 # define NY_BIN 2
+# endif
 
 void initGridBins (void) {
Index: /branches/eam_branches/relphot.20210521/src/Shutdown.c
===================================================================
--- /branches/eam_branches/relphot.20210521/src/Shutdown.c	(revision 41631)
+++ /branches/eam_branches/relphot.20210521/src/Shutdown.c	(revision 41632)
@@ -10,13 +10,12 @@
 int Shutdown (char *format, ...) {  
   va_list argp;
-  char *formatplus;
+  char formatplus[1024];
   
-  ALLOCATE (formatplus, char, strlen(format));
-  strcpy (formatplus, format);
-  strcat (formatplus, "\n");
+  // we cannot allocate this with the ohana allocation tools
+  // because it could deadlock
+  snprintf (formatplus, 1024, "%s\n", format);
 
   va_start (argp, format);
   vfprintf (stderr, formatplus, argp);
-  free (formatplus);
   va_end (argp);
 
