[hackers] [surf] Close standard output after printing XID, patch due Abby Cedar. || Troels Henriksen
changeset: 238:1b312123c34c
tag: tip
user: Troels Henriksen <athas_AT_sigkill.dk>
date: Tue Feb 21 12:00:01 2012 +0100
files: surf.c
description:
Close standard output after printing XID, patch due Abby Cedar.
diff -r 7a38aa5d9a46 -r 1b312123c34c surf.c
--- a/surf.c Sat Feb 11 17:51:48 2012 +0100
+++ b/surf.c Tue Feb 21 12:00:01 2012 +0100
_AT_@ -548,6 +548,9 @@
gdk_display_sync(gtk_widget_get_display(c->win));
printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window));
fflush(NULL);
+ if (fclose(stdout) != 0) {
+ die("Error closing stdout");
+ }
}
return c;
}
Received on Tue Feb 21 2012 - 11:59:36 CET
This archive was generated by hypermail 2.3.0
: Tue Feb 21 2012 - 12:00:11 CET