version 1.30, 2020/05/21 16:13:23 |
version 1.31, 2020/05/21 16:22:26 |
|
|
void getargs(int, char *[]); |
void getargs(int, char *[]); |
void create_file_names(void); |
void create_file_names(void); |
void open_files(void); |
void open_files(void); |
|
void cleanup_temp_files(void); |
|
|
volatile sig_atomic_t sigdie; |
|
|
|
void |
void |
done(int k) |
cleanup_temp_files() |
{ |
{ |
if (action_file) |
if (action_file) |
unlink(action_file_name); |
unlink(action_file_name); |
|
|
unlink(text_file_name); |
unlink(text_file_name); |
if (union_file) |
if (union_file) |
unlink(union_file_name); |
unlink(union_file_name); |
if (sigdie) |
} |
_exit(k); |
|
|
void |
|
done(int k) |
|
{ |
|
cleanup_temp_files(); |
exit(k); |
exit(k); |
} |
} |
|
|
|
|
void |
void |
onintr(__unused int signo) |
onintr(__unused int signo) |
{ |
{ |
sigdie = 1; |
cleanup_temp_files(); |
done(1); |
_exit(1); |
} |
} |
|
|
|
|