Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Unified Diff: runtime/bin/file_macos.cc

Issue 9617012: Allow std{in,out,err} to be a socket (Closed)
Patch Set: Respond to review comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_linux.cc ('k') | runtime/bin/stdio.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_macos.cc
diff --git a/runtime/bin/file_macos.cc b/runtime/bin/file_macos.cc
index 9ba053a49e4ef1df8135fd27c36c3e0b70e726ea..9b7093daff51e3fe6336ad217173c90e1ee9c5e3 100644
--- a/runtime/bin/file_macos.cc
+++ b/runtime/bin/file_macos.cc
@@ -212,6 +212,7 @@ File::StdioHandleType File::GetStdioHandleType(int fd) {
}
if (S_ISCHR(buf.st_mode)) return kTerminal;
if (S_ISFIFO(buf.st_mode)) return kPipe;
+ if (S_ISSOCK(buf.st_mode)) return kSocket;
if (S_ISREG(buf.st_mode)) return kFile;
return kOther;
}
« no previous file with comments | « runtime/bin/file_linux.cc ('k') | runtime/bin/stdio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698