diff options
author | Paul Smith <psmith@gnu.org> | 2005-06-12 22:22:07 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2005-06-12 22:22:07 +0000 |
commit | 467115baae38eba41b3800b4e0e84afb7f3ec99b (patch) | |
tree | d9f41f1e367ec952a9ce65dc21c30eebe0a7bcd0 /main.c | |
parent | 974d14ac4fc8dc736a4e2c9876d85d3c295b1196 (diff) | |
download | gunmake-467115baae38eba41b3800b4e0e84afb7f3ec99b.tar.gz |
Fix Savannah bug # 1328: if stdout is redirected to a full filesystem, we
check for this and exit with an error.
The closeout.c version from gnulib pulls in too much other stuff, and
gnulib requires an ANSI C 89 compliant compiler, while GNU make (so far)
still wants to work on K&R.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -914,6 +914,10 @@ main (int argc, char **argv, char **envp) } #endif +#ifdef HAVE_ATEXIT + atexit (close_stdout); +#endif + /* Needed for OS/2 */ initialize_main(&argc, &argv); @@ -2176,6 +2180,7 @@ main (int argc, char **argv, char **envp) die (status); } + /* NOTREACHED */ return 0; } |