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

Function fail_output

src/tee.c:208–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 Return true if this indicates a reportable error. */
207
208static bool
209fail_output (int *descriptors, char **files, int i)
210{
211 int w_errno = errno;
212 bool fail = errno != EPIPE
213 || output_error == output_error_exit
214 || output_error == output_error_warn;
215 if (fail)
216 {
217 error (output_error == output_error_exit
218 || output_error == output_error_exit_nopipe,
219 w_errno, "%s", quotef (files[i]));
220 }
221 descriptors[i] = -1;
222 return fail;
223}
224
225
226/* Copy the standard input into each of the NFILES files in FILES

Callers 1

tee_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected