Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143436288
D54084.id167579.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
368 B
Referenced Files
None
Subscribers
None
D54084.id167579.diff
View Options
diff --git a/usr.bin/fsync/fsync.c b/usr.bin/fsync/fsync.c
--- a/usr.bin/fsync/fsync.c
+++ b/usr.bin/fsync/fsync.c
@@ -49,7 +49,7 @@
rval = EX_OK;
for (i = 1; i < argc; ++i) {
- if ((fd = open(argv[i], O_RDONLY)) == -1) {
+ if ((fd = open(argv[i], O_RDONLY | O_NONBLOCK)) == -1) {
warn("open %s", argv[i]);
if (rval == EX_OK)
rval = EX_NOINPUT;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 31, 11:11 AM (12 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26728278
Default Alt Text
D54084.id167579.diff (368 B)
Attached To
Mode
D54084: fsync: Open files in non-blocking mode
Attached
Detach File
Event Timeline
Log In to Comment