MCPcopy Create free account
hub / github.com/coreutils/coreutils / cleanup

Function cleanup

src/csplit.c:205–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 Called when an error detected. */
204
205static void
206cleanup (void)
207{
208 sigset_t oldset;
209
210 close_output_file ();
211
212 sigprocmask (SIG_BLOCK, &caught_signals, &oldset);
213 delete_all_files (false);
214 sigprocmask (SIG_SETMASK, &oldset, NULL);
215}
216
217static _Noreturn void
218cleanup_fatal (void)

Callers 1

cleanup_fatalFunction · 0.70

Calls 2

close_output_fileFunction · 0.85
delete_all_filesFunction · 0.85

Tested by

no test coverage detected