chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strv: add calls to add two entries to an strv at once
[elogind.git]
/
src
/
shared
/
cgroup-util.c
diff --git
a/src/shared/cgroup-util.c
b/src/shared/cgroup-util.c
index da8e8852260a106248e1e1955152fe3e350ca069..e595d895d29afe94cbb71bd9e7c5d41dc95e2ace 100644
(file)
--- a/
src/shared/cgroup-util.c
+++ b/
src/shared/cgroup-util.c
@@
-195,7
+195,7
@@
int cg_kill(const char *controller, const char *path, int sig, bool sigcont, boo
if (ret >= 0 && errno != ESRCH)
ret = -errno;
} else {
if (ret >= 0 && errno != ESRCH)
ret = -errno;
} else {
- if (sigcont)
+ if (sigcont
&& sig != SIGKILL
)
kill(pid, SIGCONT);
if (ret == 0)
kill(pid, SIGCONT);
if (ret == 0)
@@
-682,7
+682,7
@@
int cg_set_group_access(
assert(path);
assert(path);
- if (mode !=
(mode_t) -1
)
+ if (mode !=
MODE_INVALID
)
mode &= 0777;
r = cg_get_path(controller, path, NULL, &fs);
mode &= 0777;
r = cg_get_path(controller, path, NULL, &fs);
@@
-704,10
+704,10
@@
int cg_set_task_access(
assert(path);
assert(path);
- if (mode ==
(mode_t) -1 && uid == (uid_t) -1 && gid == (gid_t) -1
)
+ if (mode ==
MODE_INVALID && uid == UID_INVALID && gid == GID_INVALID
)
return 0;
return 0;
- if (mode !=
(mode_t) -1
)
+ if (mode !=
MODE_INVALID
)
mode &= 0666;
r = cg_get_path(controller, path, "cgroup.procs", &fs);
mode &= 0666;
r = cg_get_path(controller, path, "cgroup.procs", &fs);