ca7d7a6ad69056034c50055a4baa31466c1f04e4 galt Wed Jun 26 17:35:06 2013 -0700 fixing dumpstack to use _exit instead of exit so that the child cleanup will not close the mysql connections that are shared with the parent process. diff --git src/inc/common.h src/inc/common.h index 99f5e16..98ce5ca 100644 --- src/inc/common.h +++ src/inc/common.h @@ -1383,30 +1383,34 @@ void makeDirs(char* path); /* make a directory, including parent directories */ char *skipNumeric(char *s); /* Return first char of s that's not a digit */ char *skipToNumeric(char *s); /* skip up to where numeric digits appear */ char *splitOffNonNumeric(char *s); /* Split off non-numeric part, e.g. mm of mm8. Result should be freed when done */ char *splitOffNumber(char *db); /* Split off number part, e.g. 8 of mm8. Result should be freed when done */ + +void childExecFailedExit(char *msg); +/* Child exec failed, so quit without atexit cleanup */ + void vaDumpStack(char *format, va_list args); /* debugging function to run the pstack program on the current process. In * prints a message, following by a new line, and then the stack track. Just * prints errors to stderr rather than aborts. For debugging purposes * only. */ void dumpStack(char *format, ...) /* debugging function to run the pstack program on the current process. In * prints a message, following by a new line, and then the stack track. Just * prints errors to stderr rather than aborts. For debugging purposes * only. */ #if defined(__GNUC__) __attribute__((format(printf, 1, 2))) #endif ;