Open the journald following descriptor earlier
Open the journald following descriptor earlier

Following a journal log almost always requires a descriptor to be
allocated.  In cases where we're running out of descriptors, this means
we might get stuck while attempting to start following the journal, at a
point where it's too late to report it to the client and clean up
easily.  The journal reading context will cache the value once it's
allocated, so here we move the check earlier, so that we can detect a
problem when we can still report it cleanly.

Signed-off-by: Nalin Dahyabhai <f562fcb2a0b898bf0be1afc867ea92325d8f825f@redhat.com>

nalind/docker,Ramzec/docker,whuwxl/docker,nalind/docker,BSWANG/denverdino.github.io,PatrickLang/moby,mtrmac/docker,justincormack/docker,mtanlee/docker,HuKeping/docker,londoncalling/docker.github.io,erikh/docker,sanscontext/docker.github.io,JimGalasyn/docker.github.io,akira-baruah/docker,aduermael/docker.github.io,justincormack/docker,alexisbellido/docker.github.io,docker/docker.github.io,konstruktoid/docker-upstream,mgoelzer/docker,laijs/moby,charleszheng44/moby,menglingwei/denverdino.github.io,londoncalling/docker.github.io,coolljt0725/docker,brahmaroutu/docker,alexisbellido/docker.github.io,duglin/docker,kerneltime/docker,bearstech/moby,Mokolea/docker,q384566678/docker,twaugh/docker,jongiddy/docker,mathewkoshy493/docker,thaJeztah/docker,anujbahuguna/docker,hypriot/docker,ndeloof/docker,ffoysal/docker,Syntaxide/docker,sanjeo/docker,nawawi/docker,gjaskiewicz/moby,gnailuy/docker,tonistiigi/docker,projectatomic/docker,LuisBosquez/docker.github.io,catinthesky/docker,raja-sami-10p/moby,justyntemme/docker,tmp6154/docker,Tenk42/docker,joeuo/docker.github.io,mikebrow/docker,BSWANG/denverdino.github.io,sanscontext/docker.github.io,KingEmet/docker,umerazad/docker,yongtang/docker,thaJeztah/docker.github.io,tonistiigi/docker,dims/docker,docker-zh/docker.github.io,xiekeyang/docker,mixja/docker,kolyshkin/moby,errordeveloper/docker,denverdino/docker.github.io,dsau/docker,14rcole/docker,pradipd/moby,BSWANG/denverdino.github.io,gdevillele/docker.github.io,errordeveloper/docker,fcrisciani/docker,anweiss/docker.github.io,splunk/docker,willmtemple/docker,bdwill/docker.github.io,rkazak/docker,konstruktoid/docker-upstream,dperny/docker,erikh/docker,prertik/docker,bdwill/docker.github.io,dccurtis/docker,pyotr777/docker,YuPengZTE/docker,tmp6154/docker,charleswhchan/docker,tianon/docker,LaynePeng/docker,LaynePeng/docker,JMesser81/docker,rillig/docker.github.io,danyalKhaliq10p/moby,danix800/docker.github.io,bearstech/moby,danyalKhaliq10p/moby,ffoysal/docker,sanjeo/docker,KingEmet/docker,dgageot/docker,ibuildthecloud/docker,johnstep/docker.github.io,moby/moby,yp-engineering/docker,vdemeester/docker,yummypeng/docker,nghiant2710/docker,duglin/docker,tonistiigi/docker,Morsicus/docker,mikebrow/docker,jzwlqx/denverdino.github.io,pecameron/docker,stevvooe/docker,kencochrane/docker,haveatry/docker,srust/docker,PatrickLang/moby,bdwill/docker.github.io,jlebon/docker,eskaaren/docker,dsau/docker,shishir-a412ed/docker,madhanrm/docker,jongiddy/docker,djs55/docker,medallia/docker,KarthikNayak/docker,tagomoris/docker,michael-holzheu/docker,mike1729/docker,thtanaka/docker,gnailuy/docker,tophj-ibm/docker,mtesselH/docker,sarnautov/moby,isubuz/docker,Mashimiao/docker,troy0820/docker.github.io,LaynePeng/docker,mikedougherty/docker,alexisbellido/docker.github.io,gschaetz/moby,mkumatag/docker,cloudflare/docker,thtanaka/docker,raja-sami-10p/moby,alexisbellido/docker.github.io,docker-zh/docker.github.io,djs55/docker,trebonian/docker,haveatry/docker,kojiromike/docker,cyphar/docker,kencochrane/docker,michael-holzheu/docker,portworx/docker,troy0820/docker.github.io,JMesser81/docker,moul/docker,YujiOshima/docker,sunyuan3/docker,Mashimiao/docker,sean-jc/docker,stevvooe/docker,charleswhchan/docker,shin-/docker.github.io,johnstep/docker.github.io,imkin/moby,thaJeztah/docker.github.io,anweiss/docker.github.io,gjaskiewicz/moby,prertik/docker,thaJeztah/docker,denverdino/docker.github.io,LuisBosquez/docker.github.io,thaJeztah/docker.github.io,Mokolea/docker,toli/docker,mathewkoshy493/docker,containers/storage,medallia/docker,rhatdan/docker,Ramzec/docker,sheimi/docker,mohmost12/docker,HuKeping/docker,shubheksha/docker.github.io,qudongfang/docker,ripcurld0/moby,eskaaren/docker,rillig/docker.github.io,jhorwit2/docker,yp-engineering/docker,cpuguy83/docker,YuPengZTE/docker,denverdino/docker.github.io,medallia/docker,konstruktoid/docker-1,docker/docker,docker/docker.github.io,harche/docker,danix800/docker.github.io,inatatsu/docker,trebonian/docker,ColinHebert/docker,denverdino/denverdino.github.io,POLJM242/docker,Altiscale/docker,gigidwan/docker,rkazak/docker,duglin/docker,TrumanLing/docker,cpuguy83/docker,splunk/docker,BSWANG/denverdino.github.io,moul/docker,gschaetz/moby,paralin/docker,sterchelen/docker,ibuildthecloud/docker,afein/docker,mkumatag/docker,paralin/docker,asbjornenge/docker,xiaods/docker,harche/docker,alfred-landrum/docker,menglingwei/denverdino.github.io,jwhonce/docker,TheBigBear/docker,maxamillion/docker,jimjag/docker,bluebreezecf/docker,qudongfang/docker,docker-zh/docker.github.io,estesp/docker,achanda/docker,13W/docker,kojiromike/docker,haveatry/docker,HuKeping/docker,coolljt0725/docker,Shopify/docker,achanda/docker,scotttlin/docker,x1022as/docker,ffoysal/docker,jongiddy/docker,crosbymichael/docker,laijs/docker,noxiouz/docker,lixiaobing1/docker,hqhq/moby,cr7pt0gr4ph7/docker,ColinHebert/docker,hqhq/moby,ibuildthecloud/docker,alfred-landrum/docker,yosifkit/docker,estesp/docker,naveed-jamil-tenpearls/moby,stainboy/docker,mixja/docker,LuisBosquez/docker.github.io,jvanz/docker,dsheets/moby,unclejack/docker,Ramzec/docker,eskaaren/docker,tklauser/docker,Ramzec/docker,tophj-ibm/docker,SvenDowideit/docker,Mokolea/docker,zhuguihua/docker,isubuz/docker,OnePaaS/docker,tkopczynski/docker,pradipd/moby,TheBigBear/docker,AkihiroSuda/docker,mgoelzer/docker,yosifkit/docker,dmcgowan/docker,crosbymichael/docker,geekylucas/docker,phiroict/docker,johnstep/moby-moby,joeuo/docker.github.io,joeuo/docker.github.io,rillig/docker.github.io,lixiaobing1/docker,Altiscale/docker,TrumanLing/docker,DoraALin/docker,brahmaroutu/docker,denverdino/denverdino.github.io,xiekeyang/docker,madhanrm/docker,dims/docker,dperny/docker,ColinHebert/docker,pecameron/docker,naveed-jamil-tenpearls/moby,sanscontext/docker.github.io,bluebreezecf/docker,lixiaobing10051267/docker,danix800/docker.github.io,rillig/docker.github.io,TrumanLing/docker,runcom/docker,dnephin/docker,sanscontext/docker.github.io,pyotr777/docker,maxamillion/docker,Microsoft/docker,sarnautov/moby,alfred-landrum/docker,lixiaobing1/docker,JimGalasyn/docker.github.io,jlebon/docker,JMesser81/docker,jwhonce/docker,gjaskiewicz/moby,brahmaroutu/docker,joaofnfernandes/docker.github.io,kojiromike/docker,moxiegirl/docker,mtanlee/docker,Morsicus/docker,tagomoris/docker,michelvocks/docker,14rcole/docker,dims/docker,HideoYamauchi/docker,ajaymdesai/docker,sanjeo/docker,menglingwei/denverdino.github.io,laijs/docker,ibuildthecloud/docker,kolyshkin/moby,dgageot/docker,konstruktoid/docker-upstream,rancher/docker,HideoYamauchi/docker,xiekeyang/docker,nalind/docker,ajaymdesai/docker,allencloud/docker,yasiramin10p/moby,jameszhan/docker,thtanaka/docker,vdemeester/docker,projectatomic/docker,SvenDowideit/docker,msabansal/docker,moypray/docker,joeuo/docker.github.io,icaoweiwei/docker,rremer/moby,runcom/docker,Mokolea/docker,mike1729/docker,pramodhkp/moby,darrenstahlmsft/moby,mtanlee/docker,13W/docker,mahak/docker,sfsmithcha/docker,shhsu/docker,phiroict/docker,errordeveloper/docker,toli/docker,phiroict/docker,cpuguy83/docker,endophage/docker,kolyshkin/moby,projectatomic/docker,ripcurld0/moby,noironetworks/docker,noironetworks/docker,ndeloof/docker,afein/docker,umerazad/docker,gdevillele/docker.github.io,pyotr777/docker,paralin/docker,coreos/docker,michelvocks/docker,mgoelzer/docker,jimjag/docker,ajaymdesai/docker,moby/moby,allencloud/docker,cr7pt0gr4ph7/docker,joeuo/docker.github.io,londoncalling/docker.github.io,scotttlin/docker,jzwlqx/denverdino.github.io,ripcurld0/moby,Shopify/docker,pramodhkp/moby,resin-io/docker,dongjoon-hyun/docker,shin-/docker.github.io,pecameron/docker,moby/moby,jwhonce/docker,erikstmartin/docker,mahak/docker,bluebreezecf/docker,AkihiroSuda/docker,rhatdan/storage,q384566678/docker,dsheets/moby,POLJM242/docker,catinthesky/docker,zhuguihua/docker,catinthesky/docker,bearstech/moby,bonczj/moby-json-file-logger,rremer/moby,dccurtis/docker,djs55/docker,darrenstahlmsft/docker,erikh/docker,unclejack/docker,thaJeztah/docker.github.io,abhinavdahiya/docker,bonczj/moby-json-file-logger,shin-/docker.github.io,darrenstahlmsft/moby,tianon/docker,miminar/docker,shishir-a412ed/docker,noironetworks/docker,Syntaxide/docker,rhatdan/storage,michael-holzheu/docker,mathewkoshy493/docker,dperny/docker,dongjoon-hyun/docker,bonczj/moby-json-file-logger,asbjornenge/docker,gdevillele/docker.github.io,shishir-a412ed/docker,msabansal/docker,dnephin/docker,mahak/docker,AkihiroSuda/docker,jhorwit2/docker,mstanleyjones/docker,PatrickLang/moby,yongtang/docker,twaugh/docker,moul/docker,tklauser/docker,Shopify/docker,cr7pt0gr4ph7/docker,x1022as/docker,nghiant2710/docker,scotttlin/docker,mikedougherty/docker,sean-jc/docker,joaofnfernandes/docker.github.io,tklauser/docker,sfsmithcha/docker,stainboy/docker,amatsus/docker,YujiOshima/docker,raja-sami-10p/moby,cloudflare/docker,moxiegirl/docker,yongtang/docker,mikebrow/docker,13W/docker,troy0820/docker.github.io,pramodhkp/moby,rhardih/docker,konstruktoid/docker-upstream,amatsus/docker,danyalKhaliq10p/moby,jzwlqx/denverdino.github.io,whuwxl/docker,srust/docker,darrenstahlmsft/docker,dsheets/moby,denverdino/denverdino.github.io,yasiramin10p/moby,denverdino/docker.github.io,fcrisciani/docker,mtrmac/docker,jlhawn/docker,menglingwei/denverdino.github.io,trebonian/docker,shhsu/docker,konstruktoid/docker-1,xiaods/docker,nawawi/docker,sdurrheimer/docker,johnstep/docker.github.io,harche/docker,fcrisciani/docker,willmtemple/docker,endophage/docker,moypray/docker,hypriot/docker,isubuz/docker,rkazak/docker,gnailuy/docker,HideoYamauchi/docker,bfirsh/docker,dgageot/docker,liaoqingwei/docker,sarnautov/moby,cyphar/docker,rhardih/docker,afein/docker,sunyuan3/docker,medallia/docker,OnePaaS/docker,sunyuan3/docker,tkopczynski/docker,jvanz/docker,DoraALin/docker,phiroict/docker,mtesselH/docker,miminar/docker,docker/docker,rhatdan/storage,toli/docker,shin-/docker.github.io,unclejack/docker,abhinavdahiya/docker,tophj-ibm/moby,coreos/docker,nalind/docker,ndeloof/docker,jhorwit2/docker,flavio/docker,flavio/docker,denverdino/docker.github.io,mike1729/docker,johnstep/moby-moby,TheBigBear/docker,docker/docker.github.io,londoncalling/docker.github.io,asbjornenge/docker,wenchma/docker,dmcgowan/docker,sheimi/docker,johnstep/docker.github.io,shubheksha/docker.github.io,naveed-jamil-tenpearls/moby,BenHall/docker,flavio/docker,LuisBosquez/docker.github.io,tmp6154/docker,mikedougherty/docker,sdurrheimer/docker,estesp/docker,rhatdan/docker,anweiss/docker.github.io,jlhawn/docker,madhanrm/docker,noxiouz/docker,shin-/docker.github.io,denverdino/denverdino.github.io,anweiss/docker.github.io,konstruktoid/docker-1,coolljt0725/docker,thaJeztah/docker.github.io,JimGalasyn/docker.github.io,Altiscale/docker,hqhq/moby,jlhawn/docker,stainboy/docker,portworx/docker,wenchma/docker,msabansal/docker,twaugh/docker,containers/storage,sanscontext/docker.github.io,lixiaobing10051267/docker,zhuguihua/docker,umerazad/docker,joaofnfernandes/docker.github.io,containers/storage,nawawi/docker,kolyshkin/docker,Microsoft/docker,sdurrheimer/docker,kencochrane/docker,liaoqingwei/docker,menglingwei/denverdino.github.io,rancher/docker,bfirsh/docker,docker-zh/docker.github.io,moxiegirl/docker,sterchelen/docker,bdwill/docker.github.io,anujbahuguna/docker,whuwxl/docker,tkopczynski/docker,dongjoon-hyun/docker,xuxinkun/docker,resin-io/docker,stevvooe/docker,x1022as/docker,jzwlqx/denverdino.github.io,SvenDowideit/docker,q384566678/docker,paralin/docker,maxamillion/docker,geekylucas/docker,jlebon/docker,mohmost12/docker,docker/docker,miminar/docker,jthelin/docker,Syntaxide/docker,liaoqingwei/docker,cloudflare/docker,moul/docker,charleszheng44/moby,erikstmartin/docker,diogomonica/docker,gdevillele/docker.github.io,YuPengZTE/docker,sfsmithcha/docker,yp-engineering/docker,KarthikNayak/docker,moby/moby,akira-baruah/docker,sterchelen/docker,jameszhan/docker,kunalkushwaha/docker,jimjag/docker,justincormack/docker,nawawi/docker,gigidwan/docker,xuxinkun/docker,laijs/moby,YujiOshima/docker,darrenstahlmsft/moby,thaJeztah/docker,flavio/docker,aduermael/docker.github.io,mohmost12/docker,BenHall/docker,gdevillele/docker.github.io,jzwlqx/denverdino.github.io,achanda/docker,mtrmac/docker,JimGalasyn/docker.github.io,charleszheng44/moby,dnephin/docker,AkihiroSuda/docker,13W/docker,gigidwan/docker,xuxinkun/docker,dccurtis/docker,sheimi/docker,mstanleyjones/docker,denverdino/denverdino.github.io,wenchma/docker,kunalkushwaha/docker,londoncalling/docker.github.io,joaofnfernandes/docker.github.io,runcom/docker,shhsu/docker,allencloud/docker,shubheksha/docker.github.io,abhinavdahiya/docker,portworx/docker,geekylucas/docker,pradipd/moby,docker/docker.github.io,KingEmet/docker,yummypeng/docker,johnstep/docker.github.io,mstanleyjones/docker,mahak/docker,troy0820/docker.github.io,tophj-ibm/moby,anujbahuguna/docker,michelvocks/docker,13W/docker,yasiramin10p/moby,Mashimiao/docker,tophj-ibm/docker,crosbymichael/docker,gschaetz/moby,yosifkit/docker,bearstech/moby,alexisbellido/docker.github.io,danix800/docker.github.io,phiroict/docker,resin-io/docker,docker-zh/docker.github.io,Tenk42/docker,joaofnfernandes/docker.github.io,xiaods/docker,Tenk42/docker,rhatdan/docker,mixja/docker,kolyshkin/docker,hypriot/docker,jameszhan/docker,inatatsu/docker,shubheksha/docker.github.io,rremer/moby,dmcgowan/docker,OnePaaS/docker,imkin/moby,rancher/docker,gnailuy/docker,shubheksha/docker.github.io,icaoweiwei/docker,mkumatag/docker,aduermael/docker.github.io,docker/docker.github.io,trebonian/docker,Morsicus/docker,diogomonica/docker,mtesselH/docker,bfirsh/docker,imkin/moby,DoraALin/docker,noxiouz/docker,yummypeng/docker,johnstep/moby-moby,nghiant2710/docker,BenHall/docker,thaJeztah/docker,JimGalasyn/docker.github.io,diogomonica/docker,kerneltime/docker,ibuildthecloud/docker,anweiss/docker.github.io,splunk/docker,inatatsu/docker,dsau/docker,prertik/docker,kunalkushwaha/docker,endophage/docker,vdemeester/docker,jthelin/docker,lixiaobing10051267/docker,KarthikNayak/docker,sean-jc/docker,laijs/moby,icaoweiwei/docker,BSWANG/denverdino.github.io,amatsus/docker,tophj-ibm/moby,darrenstahlmsft/docker,aduermael/docker.github.io,justyntemme/docker,LuisBosquez/docker.github.io,kerneltime/docker,coreos/docker,tagomoris/docker,srust/docker,qudongfang/docker,cyphar/docker,justyntemme/docker,Microsoft/docker,bdwill/docker.github.io,charleswhchan/docker,moypray/docker,jvanz/docker,laijs/docker,yosifkit/docker,erikstmartin/docker,cpuguy83/docker,jimjag/docker,willmtemple/docker