aboutsummaryrefslogtreecommitdiff
path: root/include/pwd.h
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2017-12-23 18:07:43 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2017-12-23 18:07:43 +0000
commit16545cf5d5f51cb67c03923cbb9c75a024bdaca8 (patch)
tree6160101b7e535d3742fe9e30f99767e718cd4e5b /include/pwd.h
parent6d41588b6b96171640f07e9805193623636ac11b (diff)
downloadsrc-16545cf5d5f51cb67c03923cbb9c75a024bdaca8.tar.gz
src-16545cf5d5f51cb67c03923cbb9c75a024bdaca8.zip
Introduce the daemonfd function.
The daemonfd function is equivalent to the daemon(3) function expect that arguments are descriptors. For example dhclient(8) which is sandboxed is unable to open /dev/null to close stdio instead it's allows to fail daemon(3) function to close the descriptors and then do it explicit in code. Instead of such hacks we can use now daemonfd. This API can be also helpful to migrate system to platforms like CheriBSD. Reviewed by: brooks@, bcr@, jilles@ (earlier version) Differential Revision: https://reviews.freebsd.org/D13433
Notes
Notes: svn path=/head/; revision=327115
Diffstat (limited to 'include/pwd.h')
0 files changed, 0 insertions, 0 deletions