-
- if (c->memory_soft_limit != (uint64_t) -1) {
- sprintf(buf, "%" PRIu64 "\n", c->memory_soft_limit);
- r = cg_set_attribute("memory", path, "memory.soft_limit_in_bytes", buf);
- } else
- r = cg_set_attribute("memory", path, "memory.soft_limit_in_bytes", "-1");
-
- if (r < 0)
- log_error("Failed to set memory.soft_limit_in_bytes on %s: %s", path, strerror(-r));