* ccache -- a fast C/C++ compiler cache
*
* Copyright (C) 2002-2007 Andrew Tridgell
- * Copyright (C) 2009-2012 Joel Rosdahl
+ * Copyright (C) 2009-2013 Joel Rosdahl
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
args_pop(args, 3);
if (stat(tmp_stdout, &st) != 0) {
- fatal("Could not create %s (permission denied?)", tmp_stdout);
+ /* The stdout file was removed - cleanup in progress? Better bail out. */
+ cc_log("%s not found: %s", tmp_stdout, strerror(errno));
+ stats_update(STATS_MISSING);
+ tmp_unlink(tmp_stdout);
+ tmp_unlink(tmp_stderr);
+ tmp_unlink(tmp_obj);
+ failed();
}
if (st.st_size != 0) {
cc_log("Compiler produced stdout");