| 112 | } |
| 113 | |
| 114 | static void activate_tempfile(struct tempfile *tempfile) |
| 115 | { |
| 116 | static int initialized; |
| 117 | |
| 118 | if (!initialized) { |
| 119 | sigchain_push_common(remove_tempfiles_on_signal); |
| 120 | atexit(remove_tempfiles_on_exit); |
| 121 | initialized = 1; |
| 122 | } |
| 123 | |
| 124 | volatile_list_add(&tempfile->list, &tempfile_list); |
| 125 | tempfile->owner = getpid(); |
| 126 | } |
| 127 | |
| 128 | static void deactivate_tempfile(struct tempfile *tempfile) |
| 129 | { |
no test coverage detected