diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-08-21 11:21:59 +0000 |
---|---|---|
committer | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-08-30 14:29:49 +0200 |
commit | bebb88600bc0fc7aa3abb86712652c0ff5c38122 (patch) | |
tree | abb62ead71de75d58d677d2618f7b956610d9fca /process.c | |
parent | f3d54d87f2abd6ff2be77e1e396bb45a2f0953a6 (diff) |
Encapsulate access to node->nn_stat
* procfs.c, procfs.h (procfs_node_chown,
procfs_node_chmod, procfs_node_chtype): New functions, encapsulate
access to some nn_stat fields.
* process.c (process_lookup_pid): Use procfs_node_chown instead
of direct access.
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,6 +224,6 @@ process_lookup_pid (struct ps_context *pc, pid_t pid, struct node **np) if (! *np) return ENOMEM; - (*np)->nn_stat.st_uid = proc_stat_owner_uid (ps); + procfs_node_chown (*np, proc_stat_owner_uid (ps)); return 0; } |