bmahler commented on code in PR #520:
URL: https://github.com/apache/mesos/pull/520#discussion_r1528999394


##########
src/linux/cgroups2.cpp:
##########
@@ -242,6 +242,23 @@ Try<Nothing> unmount()
   return Nothing();
 }
 
+
+Try<Nothing> create(const string& cgroup, bool recursive)
+{
+  string absolutePath = path::join(MOUNT_POINT, cgroup);
+  if (os::exists(absolutePath)) {
+    return Error("A cgroup at '" + absolutePath + "' already exists");
+  }

Review Comment:
   Do we need this? mkdir should give us EEXIST in this case?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to