add system errno

This commit is contained in:
virusdefender 2017-08-30 16:43:04 +08:00
parent 20bcbf0fd7
commit dbd8aa7e87

View File

@ -1,11 +1,12 @@
#ifndef JUDGER_CHILD_H
#define JUDGER_CHILD_H
#include <string.h>
#include "runner.h"
#define CHILD_ERROR_EXIT(error_code)\
{\
LOG_ERROR(error_code); \
LOG_FATAL(log_fp, "Error: System errno: %s; Internal errno: "#error_code, strerror(errno)); \
close_file(input_file, output_file, error_file); \
raise(SIGUSR1); \
return -1; \