diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-22 18:42:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 21:10:00 -0400 |
commit | 864bdb3b6cbd9911222543fef1cfe36f88183f44 (patch) | |
tree | bd00e6293592a084ee0fe68e3acb93060f54ae68 /include/linux/fdtable.h | |
parent | 2be7fd55d44882c9818ed2d1dabc0f0abab5eeed (diff) | |
download | lwn-864bdb3b6cbd9911222543fef1cfe36f88183f44.tar.gz lwn-864bdb3b6cbd9911222543fef1cfe36f88183f44.zip |
new helper: daemonize_descriptors()
descriptor-related parts of daemonize, done right. As the
result we simplify the locking rules for ->files - we
hold task_lock in *all* cases when we modify ->files.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fdtable.h')
-rw-r--r-- | include/linux/fdtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h index fb7dacae0522..45052aa814c8 100644 --- a/include/linux/fdtable.h +++ b/include/linux/fdtable.h @@ -95,6 +95,7 @@ struct task_struct; struct files_struct *get_files_struct(struct task_struct *); void put_files_struct(struct files_struct *fs); void reset_files_struct(struct files_struct *); +void daemonize_descriptors(void); int unshare_files(struct files_struct **); struct files_struct *dup_fd(struct files_struct *, int *); void do_close_on_exec(struct files_struct *); |