TODO(bernd-mesos): Use Path, not string, create Path::executable().
| 389 | |
| 390 | // TODO(bernd-mesos): Use Path, not string, create Path::executable(). |
| 391 | static bool isExecutable(const string& path) |
| 392 | { |
| 393 | Try<bool> access = os::access(path, X_OK); |
| 394 | EXPECT_SOME(access); |
| 395 | return access.isSome() && access.get(); |
| 396 | } |
| 397 | |
| 398 | |
| 399 | // Create a future that indicates that the task observed by the given |