Add a new command line option: -r , to maximize core file limit. If the option is given, memcached tries to set the limit as high as possible, and at the very least to ensure it's non-zero, so *something* gets dumped. If it can't ensure that, memcached won't run.
Add a new command line option: -r , to maximize core file limit.
If the option is given, memcached tries to set the limit as high as
possible, and at the very least to ensure it's non-zero, so *something*
gets dumped. If it can't ensure that, memcached won't run.

Also, when daemonising, the new option tells daemon() not to chdir to
the root directory /, so that it won't try to create the core file there.


git-svn-id: 712aefb8596620db6486b8151c1cac37df8d9591@197 b0b603af-a30f-0410-a34e-baf09ae79d0b

ClearwaterCore/memcached,osheroff/memcached_kdtree,msg7086/repcached,cloudrain21/memcached-1,jbergstroem/memcached,daverigby/kv_engine,zbase/moxi,romanticode/memcached,myPublicGit/memcached,fengshao0907/memcached,elfchief/memcached,jbergstroem/memcached,fengshao0907/memcached,memcached/memcached,amyvmiwei/memcached,couchbase/moxi,membase/moxi,membase/moxi,abhinavdangeti/memcached,niaomingjian/memcached,daverigby/memcached,guikcd/memcached,daverigby/kv_engine,saumitra/memcached,DigitalAce/memcached,alexandermerritt/memcached,owendCB/memcached,amyvmiwei/memcached,alexandermerritt/memcached,samt42/memcached,jeremiahyan/memcached,cloudrain21/memcached-1,Distrotech/memcached,emcconville/memcached,tmharrisonwang/memcached,zbase/memcached,tmharrisonwang/memcached,owendCB/memcached,tellapart/memcached,jbergstroem/memcached,msg7086/repcached,jimwwalker/memcached,DSrcl/memcached,saumitra/memcached,neutronsharc/memcached,kamyu104/memcached,allen8807/memcached-1,guikcd/memcached,daverigby/memcached,romanticode/memcached,Danzeer/memcached,xiaosl/memcached,DSrcl/memcached,EdwardLee03/memcached,mitliucak/memcached,gencer/memcached,zbase/moxi,mrkwse/memcached,dormando/memcached,memcached/memcached,shelsonjava/memcached,Dhruva6/memcached,13693100472/memcached,allen8807/memcached-1,rmccullagh/memcached,Metaswitch/memcached,13693100472/memcached,elfchief/memcached,Danzeer/memcached,gencer/memcached,gencer/memcached,rhli/memcached,mdounin/memcached,romanticode/memcached,tomykaira/memcached,Metaswitch/memcached,tomykaira/memcached,abhinavdangeti/memcached,cloudrain21/memcached-1,Distrotech/memcached,dkrotx/memcached-dd,cloudrain21/memcached,cloudrain21/memcached,fengshao0907/memcached,memcached/memcached,steveyen/moxi,bpzhang/memcached,dormando/memcached,abhinavdangeti/memcached,ZhangZhenhua/memcached,surajdharmapuram/memcached,samanbarghi/memcached,guikcd/memcached,mrkwse/memcached,DigitalAce/memcached,emcconville/memcached,surajdharmapuram/memcached,niaomingjian/memcached,xiaosl/memcached,zbase/moxi,kamyu104/memcached,shelsonjava/memcached,neutronsharc/memcached,tmharrisonwang/memcached,rhli/memcached,angusfenying/memcached-win64,Metaswitch/memcached,jeremiahyan/memcached,samanbarghi/memcached,alexandermerritt/memcached,couchbase/moxi,emcconville/memcached,osheroff/memcached_kdtree,tellapart/memcached,ZhangZhenhua/memcached,niaomingjian/memcached,couchbase/moxi,Dhruva6/memcached,surajdharmapuram/memcached,kamyu104/memcached,zaycev/memcached,jeremiahyan/memcached,cloudrain21/memcached,tmharrisonwang/memcached,dormando/memcached,dianerdianer/memcached,couchbase/memcached,tellapart/memcached,leverich/memcached-affinity,dkrotx/memcached-dd,elfchief/memcached,daverigby/kv_engine,DSrcl/memcached,ClearwaterCore/memcached,couchbase/memcached,daverigby/memcached,williamcheungthu/memcached,owendCB/memcached,ClearwaterCore/memcached,sagark/memcached-accel,mitliucak/memcached,sagark/memcached-accel,williamcheungthu/memcached,shelsonjava/memcached,guikcd/memcached,mitliucak/memcached,dustin/memcached,rhli/memcached,rmccullagh/memcached,amyvmiwei/memcached,allen8807/memcached-1,Distrotech/memcached,steveyen/moxi,tomykaira/memcached,zaycev/memcached,mrkwse/memcached,couchbase/memcached,Danzeer/memcached,gencer/memcached,cloudrain21/memcached-1,xiaosl/memcached,williamcheungthu/memcached,couchbase/moxi,EdwardLee03/memcached,dormando/memcached,zbase/memcached,leverich/memcached-affinity,Metaswitch/memcached,dianerdianer/memcached,saumitra/memcached,sagark/memcached-accel,membase/moxi,msg7086/repcached,couchbase/moxi,abhinavdangeti/memcached,DigitalAce/memcached,rmccullagh/memcached,13693100472/memcached,osheroff/memcached_kdtree,13693100472/memcached,angusfenying/memcached-win64,cloudrain21/memcached,couchbase/memcached,neutronsharc/memcached,samt42/memcached,leedc/memcached,dormando/memcached,sagark/memcached-accel,leedc/memcached,couchbase/moxi,emcconville/memcached,zaycev/memcached,msg7086/repcached,Dhruva6/memcached,memcached/memcached,tomykaira/memcached,sagark/memcached-accel,EdwardLee03/memcached,13693100472/memcached,samanbarghi/memcached,jimwwalker/memcached,myPublicGit/memcached,alexandermerritt/memcached,leedc/memcached,shelsonjava/memcached,zbase/memcached,ZhangZhenhua/memcached,bpzhang/memcached,EdwardLee03/memcached,gencer/memcached,myPublicGit/memcached,zbase/moxi,xiaosl/memcached,DSrcl/memcached,rmccullagh/memcached,abhinavdangeti/memcached,jeremiahyan/memcached,dustin/memcached,Dhruva6/memcached,romanticode/memcached,membase/moxi,elfchief/memcached,zbase/memcached,zbase/memcached,samt42/memcached,daverigby/memcached,samt42/memcached,dustin/memcached,daverigby/kv_engine,Metaswitch/memcached,angusfenying/memcached-win64,steveyen/moxi,dkrotx/memcached-dd,allen8807/memcached-1,dianerdianer/memcached,mdounin/memcached,jimwwalker/memcached,myPublicGit/memcached,membase/moxi,msg7086/repcached,williamcheungthu/memcached,dkrotx/memcached-dd,steveyen/moxi,ZhangZhenhua/memcached,angusfenying/memcached-win64,rhli/memcached,leverich/memcached-affinity,surajdharmapuram/memcached,fengshao0907/memcached,Danzeer/memcached,niaomingjian/memcached,zbase/moxi,amyvmiwei/memcached,neutronsharc/memcached,bpzhang/memcached,elfchief/memcached,owendCB/memcached,samanbarghi/memcached,membase/moxi,steveyen/moxi,mdounin/memcached,bpzhang/memcached,mrkwse/memcached,mitliucak/memcached,zaycev/memcached,memcached/memcached,rmccullagh/memcached,dianerdianer/memcached,leedc/memcached,ClearwaterCore/memcached,guikcd/memcached,kamyu104/memcached