]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Include "closeout.h".
authorJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:48:25 +0000 (14:48 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:48:25 +0000 (14:48 +0000)
(main): Call atexit with close_stdout.

login-utils/su.c

index 35a6b21fbe5f2931e96926ce9a0fa1d065584cd5..5b78ed214ad59430251adc5e56680cc9aa96d783 100644 (file)
@@ -82,6 +82,7 @@
 #define getusershell _getusershell_sys_proto_
 
 #include "system.h"
+#include "closeout.h"
 
 #undef getusershell
 
@@ -449,6 +450,7 @@ Change the effective user id and group id to that of USER.\n\
 A mere - implies -l.   If USER not given, assume root.\n\
 "));
       puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
+      close_stdout ();
     }
   exit (status);
 }