chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test-tables: add new entries
[elogind.git]
/
src
/
shared
/
cgroup-util.c
diff --git
a/src/shared/cgroup-util.c
b/src/shared/cgroup-util.c
index 139888c4a11152bafded2f3c032db8f6e706a39c..c1c4d409ae5ee6bcc30d5d743473417861dbc6e4 100644
(file)
--- a/
src/shared/cgroup-util.c
+++ b/
src/shared/cgroup-util.c
@@
-641,7
+641,7
@@
int cg_attach(const char *controller, const char *path, pid_t pid) {
if (pid == 0)
pid = getpid();
- snprintf(c, sizeof(c),
"%lu\n", (unsigned long)
pid);
+ snprintf(c, sizeof(c),
PID_FMT"\n",
pid);
return write_string_file(fs, c);
}