process-util: introduce report_errno_and_exit() as part of src/basic/process-util.{h,c}

This commit is contained in:
Ivan Kruglov
2024-11-06 11:18:38 +01:00
parent f755ac99cb
commit a567de392d
4 changed files with 18 additions and 17 deletions
+2
View File
@@ -273,3 +273,5 @@ int posix_spawn_wrapper(
int proc_dir_open(DIR **ret);
int proc_dir_read(DIR *d, pid_t *ret);
int proc_dir_read_pidref(DIR *d, PidRef *ret);
_noreturn_ void report_errno_and_exit(int errno_fd, int error);