diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-24 15:04:48 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-06-18 22:59:43 +0200 |
commit | 40eaf4e4f711978625ecbbdd359caa33d947ec8d (patch) | |
tree | d43515f442780dd198bc3b12f784bf03437d13ab /src/nxt_cgroup.c | |
parent | 3db000a5399fd688ec0d97b38e784778bdd90375 (diff) | |
download | unit-40eaf4e4f711978625ecbbdd359caa33d947ec8d.tar.gz unit-40eaf4e4f711978625ecbbdd359caa33d947ec8d.tar.bz2 |
fs: Rename nxt_fs_mkdir_all() => nxt_fs_mkdir_p()
"all" is too generic of an attribute to be meaningful. In the context
of mkdir(), "parents" is used for this meaning, as in mkdir -p, so it
should be more straightforward to readers.
Tested-by: Andy Postnikov <apostnikov@gmail.com>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_cgroup.c')
-rw-r--r-- | src/nxt_cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_cgroup.c b/src/nxt_cgroup.c index 2c404acc..79e240f1 100644 --- a/src/nxt_cgroup.c +++ b/src/nxt_cgroup.c @@ -34,7 +34,7 @@ nxt_cgroup_proc_add(nxt_task_t *task, nxt_process_t *process) return NXT_ERROR; } - ret = nxt_fs_mkdir_all((const u_char *) cgprocs, 0777); + ret = nxt_fs_mkdir_p((const u_char *) cgprocs, 0777); if (nxt_slow_path(ret == NXT_ERROR)) { return NXT_ERROR; } |