open the maps file before we drop root privileges
open the maps file before we drop root privileges

Summary: once we drop root privileges, we cannot open the maps file.

Reviewed By: ps

Test Plan: started memcached with sudo and -u nobody.  did a stats maps.  flooded memcached with sets to force it to do a brk.  did a stats maps.  diffed the outputs to verify that rewinding and rereading the file works.

Revert: OK


git-svn-id: d16fc8af3894fe4b8f00d9e752b9e158f74a7d75@117510 2c7ba8d8-a2f7-0310-a573-de162e16dcc7

sysalexis/memcached,sysalexis/memcached,sysalexis/memcached,sysalexis/memcached,sysalexis/memcached