MCPcopy Create free account
hub / github.com/ioi/isolate / cg_remove

Function cg_remove

cg.c:327–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void
328cg_remove(void)
329{
330 if (!cg_enable)
331 return;
332
333 char path[PATH_MAX];
334 cg_makepath(path, sizeof(path), NULL);
335
336 if (dir_exists(path))
337 {
338 msg("Removing control group\n");
339
340 cg_write("?cgroup.kill", "1\n");
341
342 if (rmdir(path) < 0)
343 die("Cannot remove control group %s: %m", path);
344 }
345}

Callers 1

do_cleanupFunction · 0.85

Calls 4

cg_makepathFunction · 0.85
dir_existsFunction · 0.85
msgFunction · 0.85
cg_writeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…