You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 05:28:29 UTC
svn commit: r1131603 - /incubator/mesos/trunk/src/launcher.cpp
Author: benh
Date: Sun Jun 5 03:28:29 2011
New Revision: 1131603
URL: http://svn.apache.org/viewvc?rev=1131603&view=rev
Log:
Making things pulled down from HDFS executable.
Modified:
incubator/mesos/trunk/src/launcher.cpp
Modified: incubator/mesos/trunk/src/launcher.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/launcher.cpp?rev=1131603&r1=1131602&r2=1131603&view=diff
==============================================================================
--- incubator/mesos/trunk/src/launcher.cpp (original)
+++ incubator/mesos/trunk/src/launcher.cpp Sun Jun 5 03:28:29 2011
@@ -129,6 +129,8 @@ string ExecutorLauncher::fetchExecutor()
if (ret != 0)
fatal("HDFS copyToLocal failed: return code %d", ret);
executor = localFile;
+ if (chmod(executor, S_IXUSR | S_IXGRP | S_IXOTH) != 0)
+ fatalerror("chmod failed");
}
// If the executor was a .tgz, untar it in the work directory. The .tgz