diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2009-09-14 22:49:31 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2009-09-16 06:33:53 -0700 |
commit | 6e93d770b9733379b3a3e322887b13c9b5a39033 (patch) | |
tree | a61c22c706a2935099036e79fde1ac72ffbcd282 /src | |
parent | fbd2c88c33a8bb42d559b9a7316eb94d498148ea (diff) |
tcc: Open journal file in append mode
Running the testsuite from make results in multiple executions of tcc, so
we need to append to it if we want one big log.
Diffstat (limited to 'src')
-rw-r--r-- | src/tet3/tcc/journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tet3/tcc/journal.c b/src/tet3/tcc/journal.c index 703b16f1..11885dd0 100644 --- a/src/tet3/tcc/journal.c +++ b/src/tet3/tcc/journal.c @@ -164,9 +164,9 @@ char *jopt, *cwd; ** open the journal file, ** making sure that an existing file is not overwritten */ - if ((fd = OPEN(fname, O_WRONLY | O_CREAT | O_EXCL, MODEANY)) < 0) + if ((fd = OPEN(fname, O_WRONLY | O_CREAT, MODEANY)) < 0) fatal(errno, "can't open", fname); - if ((jfp = FDOPEN(fd, "w")) == (FILE *) 0) + if ((jfp = FDOPEN(fd, "a")) == (FILE *) 0) fatal(errno, "fdopen() failed on", fname); if (tet_fioclex(FILENO(jfp)) < 0) tcc_exit(1); |