X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=3e731e9d02924bf9dda268ad54d75f9f8193767f;hp=352715a0079187686bc7cf45649f05627bb459ee;hb=04f29f2f08da21cbcebbf86fe98de0522f024c64;hpb=6a25955fe6db8e08805d5a0b07ff6b531a5515d3 diff --git a/src/main.c b/src/main.c index 352715a0..3e731e9d 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ /* Command line parsing. Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, + 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -56,7 +56,7 @@ as that of the covered work. */ #include "http.h" /* for save_cookies */ #include "ptimer.h" #include "warc.h" - +#include "closeout.h" #include #include #include @@ -966,6 +966,8 @@ main (int argc, char **argv) i18n_initialize (); + atexit (close_stdout); + /* Construct the name of the executable, without the directory part. */ #ifdef __VMS /* On VMS, lose the "dev:[dir]" prefix and the ".EXE;nnn" suffix. */