From: Jim Meyering Date: Sun, 7 May 2000 14:48:25 +0000 (+0000) Subject: Include "closeout.h". X-Git-Tag: v2.22-rc1~347^2~10^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73a902bb3dc421c639592a34492dce5b95ae1d47;p=thirdparty%2Futil-linux.git Include "closeout.h". (main): Call atexit with close_stdout. --- diff --git a/login-utils/su.c b/login-utils/su.c index 35a6b21fbe..5b78ed214a 100644 --- a/login-utils/su.c +++ b/login-utils/su.c @@ -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 .")); + close_stdout (); } exit (status); }