socket-util: Move get_max_fds() to process.c.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 21 Feb 2014 16:46:31 +0000 (08:46 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 21 Feb 2014 22:44:31 +0000 (14:44 -0800)
commit4f57ad100f4556c45a7ad4c4fe904545a99976e5
tree39d61fc68ae31ecd373b933554c1d29483a404b3
parent7ff04d92445beaaea4123cbc3083d950278b1d55
socket-util: Move get_max_fds() to process.c.

get_max_fds() is used only from process.c. Move it there
along with rlim_is_finite(). Since process_start() can only
be called before any additional threads are created, we
no longer need the thread safety checks in get_max_fds().

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