Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102989607
D39959.id121506.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
277 B
Referenced Files
None
Subscribers
None
D39959.id121506.diff
View Options
diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c
--- a/usr.bin/tsort/tsort.c
+++ b/usr.bin/tsort/tsort.c
@@ -183,6 +183,8 @@
/* do the sort */
tsort();
+ if (ferror(stdout) != 0 || fflush(stdout) != 0)
+ err(1, "stdout");
exit(0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 1:21 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14738739
Default Alt Text
D39959.id121506.diff (277 B)
Attached To
Mode
D39959: tsort: Error out if writing to stdout failed.
Attached
Detach File
Event Timeline
Log In to Comment