IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2021, 4:06:47 PM (5 years ago)
Author:
eugene
Message:

use grid for PS1; do not use ohana alloc for Shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/Shutdown.c

    r38986 r41632  
    1010int Shutdown (char *format, ...) { 
    1111  va_list argp;
    12   char *formatplus;
     12  char formatplus[1024];
    1313 
    14   ALLOCATE (formatplus, char, strlen(format));
    15   strcpy (formatplus, format);
    16   strcat (formatplus, "\n");
     14  // we cannot allocate this with the ohana allocation tools
     15  // because it could deadlock
     16  snprintf (formatplus, 1024, "%s\n", format);
    1717
    1818  va_start (argp, format);
    1919  vfprintf (stderr, formatplus, argp);
    20   free (formatplus);
    2120  va_end (argp);
    2221
Note: See TracChangeset for help on using the changeset viewer.