static void * lsd_nomem_error(char *file, int line, char *mesg) { fprintf(log_fp(), "ERROR: [%s:%d] %s: %s\n", file, line, mesg, strerror(errno)); fflush(log_fp()); abort(); return NULL; }
/* * init() is called when the plugin is loaded, before any other functions * are called. Put global initialization here. */ extern int init(void) { if (!_run_in_daemon()) return SLURM_SUCCESS; debug_flags = slurm_get_debug_flags(); /* Move HDF5 trace printing to log file instead of stderr */ H5Eset_auto(H5E_DEFAULT, (herr_t (*)(hid_t, void *))H5Eprint, log_fp()); return SLURM_SUCCESS; }
static void lsd_fatal_error(char *file, int line, char *mesg) { fprintf(log_fp(), "ERROR: [%s:%d] %s: %s\n", file, line, mesg, strerror(errno)); fflush(log_fp()); }