mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-28 07:51:42 +00:00
add system errno
This commit is contained in:
parent
20bcbf0fd7
commit
dbd8aa7e87
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user