Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yamakuzure/502c0b0df770db50de24f635250cc4f1 to your computer and use it in GitHub Desktop.
Save Yamakuzure/502c0b0df770db50de24f635250cc4f1 to your computer and use it in GitHub Desktop.
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 9235361b6..11102790e 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -824,7 +824,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) {
xsprintf(c, PID_FMT "\n", pid);
- r = write_string_file(fs, c, WRITE_STRING_FILE_DISABLE_BUFFER);
+ r = write_string_file(fs, c, 0);
if (r < 0)
return r;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment