All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] eject: verify writing to streams was successful
@ 2012-04-11 18:41 Sami Kerola
  2012-04-23 10:03 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Sami Kerola @ 2012-04-11 18:41 UTC (permalink / raw)
  To: util-linux; +Cc: kerolasa

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 sys-utils/eject.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys-utils/eject.c b/sys-utils/eject.c
index 5aec0ba..e008886 100644
--- a/sys-utils/eject.c
+++ b/sys-utils/eject.c
@@ -46,6 +46,7 @@
 #include <libmount.h>
 
 #include "c.h"
+#include "closestream.h"
 #include "nls.h"
 #include "strutils.h"
 #include "xalloc.h"
@@ -921,6 +922,7 @@ int main(int argc, char **argv)
 	setlocale(LC_ALL,"");
 	bindtextdomain(PACKAGE, LOCALEDIR);
 	textdomain(PACKAGE);
+	atexit(close_stdout);
 
 	/* parse the command line arguments */
 	parse_args(argc, argv, &device);
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] eject: verify writing to streams was successful
  2012-04-11 18:41 [PATCH] eject: verify writing to streams was successful Sami Kerola
@ 2012-04-23 10:03 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-04-23 10:03 UTC (permalink / raw)
  To: Sami Kerola; +Cc: util-linux

On Wed, Apr 11, 2012 at 08:41:56PM +0200, Sami Kerola wrote:
>  sys-utils/eject.c |    2 ++
>  1 file changed, 2 insertions(+)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-23 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 18:41 [PATCH] eject: verify writing to streams was successful Sami Kerola
2012-04-23 10:03 ` Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.