You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/02/24 00:29:28 UTC

[2/2] mesos git commit: Fixed the bug in linux fs for creating fd symlinks.

Fixed the bug in linux fs for creating fd symlinks.

Review: https://reviews.apache.org/r/43912/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/41343a7a
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/41343a7a
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/41343a7a

Branch: refs/heads/master
Commit: 41343a7a6c3df215cc96aa9ec9541df9ccd72fd2
Parents: 57f8aa3
Author: Gilbert Song <so...@gmail.com>
Authored: Tue Feb 23 15:20:18 2016 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue Feb 23 15:20:18 2016 -0800

----------------------------------------------------------------------
 src/linux/fs.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/41343a7a/src/linux/fs.cpp
----------------------------------------------------------------------
diff --git a/src/linux/fs.cpp b/src/linux/fs.cpp
index 7792f68..6bf87a1 100644
--- a/src/linux/fs.cpp
+++ b/src/linux/fs.cpp
@@ -535,9 +535,9 @@ Try<Nothing> createStandardDevices(const string& root)
   }
 
   vector<SymLink> symlinks = {
-    {"/proc/self/fd0", path::join(root, "dev", "stdin")},
-    {"/proc/self/fd1", path::join(root, "dev", "stdout")},
-    {"/proc/self/fd2", path::join(root, "dev", "stderr")},
+    {"/proc/self/fd/0", path::join(root, "dev", "stdin")},
+    {"/proc/self/fd/1", path::join(root, "dev", "stdout")},
+    {"/proc/self/fd/2", path::join(root, "dev", "stderr")},
     {"pts/ptmx",       path::join(root, "dev", "ptmx")}
   };