version 1.12, 2001/07/16 06:29:44 |
version 1.13, 2001/11/07 11:42:53 |
|
|
void create_file_names __P((void)); |
void create_file_names __P((void)); |
void open_files __P((void)); |
void open_files __P((void)); |
|
|
|
volatile sig_atomic_t sigdie; |
|
|
void |
void |
done(k) |
done(k) |
int k; |
int k; |
{ |
{ |
if (action_file) { fclose(action_file); unlink(action_file_name); } |
if (action_file) |
if (text_file) { fclose(text_file); unlink(text_file_name); } |
unlink(action_file_name); |
if (union_file) { fclose(union_file); unlink(union_file_name); } |
if (text_file) |
|
unlink(text_file_name); |
|
if (union_file) |
|
unlink(union_file_name); |
|
if (sigdie) |
|
_exit(k); |
exit(k); |
exit(k); |
} |
} |
|
|
|
|
onintr(signo) |
onintr(signo) |
int signo; |
int signo; |
{ |
{ |
done(1); /* XXX signal race */ |
sigdie = 1; |
|
done(1); |
} |
} |
|
|
|
|