|
|
@ -3243,10 +3243,7 @@ void kill_work(void) |
|
|
|
quit(0, "Shutdown signal received."); |
|
|
|
quit(0, "Shutdown signal received."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef WIN32 |
|
|
|
static const char **initial_args; |
|
|
|
const |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
char **initial_args; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void clean_up(bool restarting); |
|
|
|
static void clean_up(bool restarting); |
|
|
|
|
|
|
|
|
|
|
@ -7940,12 +7937,7 @@ int main(int argc, char *argv[]) |
|
|
|
quithere(1, "Failed to pthread_mutex_init lockstat_lock errno=%d", errno); |
|
|
|
quithere(1, "Failed to pthread_mutex_init lockstat_lock errno=%d", errno); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef WIN32 |
|
|
|
|
|
|
|
initial_args = (const char **)malloc(sizeof(char *)* (argc + 1)); |
|
|
|
initial_args = (const char **)malloc(sizeof(char *)* (argc + 1)); |
|
|
|
#else |
|
|
|
|
|
|
|
initial_args = (char **)malloc(sizeof(char *)* (argc + 1)); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < argc; i++) |
|
|
|
for (i = 0; i < argc; i++) |
|
|
|
initial_args[i] = strdup(argv[i]); |
|
|
|
initial_args[i] = strdup(argv[i]); |
|
|
|
initial_args[argc] = NULL; |
|
|
|
initial_args[argc] = NULL; |
|
|
|