socket-util: Move get_null_fd() to daemon.c.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 21 Feb 2014 18:52:18 +0000 (10:52 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 21 Feb 2014 22:44:31 +0000 (14:44 -0800)
commitfb14862dcf197ed025a3a337ca47c2f5e9560c0d
tree5925503795c5576c9dd1ab5b4bc4dd48cc067cf4
parent1bada7ab1212c9fb3def0fb5c6af3b78de5ae85c
socket-util: Move get_null_fd() to daemon.c.

get_null_fd() is only called from daemon.c.
It does not need thread safety features anymore as
it is called either through daemonize_start() or
indirectly through daemonize_complete() once.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/daemon.c
lib/socket-util.c
lib/socket-util.h