From 9453a7451d66ee1ea5762a75161bf8a818c01a1f Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 28 Jun 2013 21:57:59 -0400 Subject: Set O_APPEND mode for stdout/stderr and output-sync temporary files. POSIX does not guarantee that writes will be atomic if a file is opened for normal (non-append) output. That means if multiple processes are writing to the same file, output could be lost. I can't think of a real use-case where we would NOT want append for stdout/stderr, so force it if we can. --- makeint.h | 1 + 1 file changed, 1 insertion(+) (limited to 'makeint.h') diff --git a/makeint.h b/makeint.h index f119680..b51e914 100644 --- a/makeint.h +++ b/makeint.h @@ -453,6 +453,7 @@ int alpha_compare (const void *, const void *); void print_spaces (unsigned int); char *find_percent (char *); const char *find_percent_cached (const char **); +void set_append_mode (int); int open_tmpfd (void); FILE *open_tmpfile (char **, const char *); -- cgit v1.2.3