From Philippe: This patch adds some protections in case fopen fails (exit rather than core dumps).
From Philippe:
This patch adds some protections in case fopen fails (exit rather than core dumps).


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@6874 27541ba8-7e3a-0410-8455-c3a389f83636

thomaskeck/root,vukasinmilosevic/root,simonpf/root,davidlt/root,satyarth934/root,sawenzel/root,root-mirror/root,beniz/root,krafczyk/root,kirbyherm/root-r-tools,mhuwiler/rootauto,vukasinmilosevic/root,cxx-hep/root-cern,thomaskeck/root,zzxuanyuan/root,buuck/root,buuck/root,strykejern/TTreeReader,krafczyk/root,jrtomps/root,agarciamontoro/root,cxx-hep/root-cern,sirinath/root,CristinaCristescu/root,agarciamontoro/root,omazapa/root-old,bbockelm/root,perovic/root,veprbl/root,CristinaCristescu/root,beniz/root,karies/root,gganis/root,georgtroska/root,sawenzel/root,vukasinmilosevic/root,Duraznos/root,olifre/root,beniz/root,ffurano/root5,mattkretz/root,omazapa/root-old,veprbl/root,zzxuanyuan/root-compressor-dummy,tc3t/qoot,mattkretz/root,alexschlueter/cern-root,beniz/root,root-mirror/root,zzxuanyuan/root,satyarth934/root,abhinavmoudgil95/root,strykejern/TTreeReader,evgeny-boger/root,pspe/root,zzxuanyuan/root-compressor-dummy,olifre/root,zzxuanyuan/root,pspe/root,tc3t/qoot,mattkretz/root,mkret2/root,strykejern/TTreeReader,omazapa/root,sbinet/cxx-root,omazapa/root,abhinavmoudgil95/root,simonpf/root,thomaskeck/root,georgtroska/root,BerserkerTroll/root,strykejern/TTreeReader,esakellari/root,gganis/root,arch1tect0r/root,tc3t/qoot,karies/root,davidlt/root,sirinath/root,zzxuanyuan/root,smarinac/root,georgtroska/root,BerserkerTroll/root,0x0all/ROOT,root-mirror/root,mattkretz/root,abhinavmoudgil95/root,esakellari/my_root_for_test,karies/root,omazapa/root,0x0all/ROOT,gganis/root,0x0all/ROOT,olifre/root,jrtomps/root,mattkretz/root,omazapa/root,alexschlueter/cern-root,bbockelm/root,dfunke/root,sbinet/cxx-root,sawenzel/root,Duraznos/root,sawenzel/root,esakellari/my_root_for_test,root-mirror/root,bbockelm/root,satyarth934/root,satyarth934/root,nilqed/root,bbockelm/root,alexschlueter/cern-root,perovic/root,buuck/root,nilqed/root,olifre/root,zzxuanyuan/root,sirinath/root,zzxuanyuan/root-compressor-dummy,Y--/root,sbinet/cxx-root,Y--/root,davidlt/root,sbinet/cxx-root,sirinath/root,abhinavmoudgil95/root,mattkretz/root,satyarth934/root,karies/root,vukasinmilosevic/root,arch1tect0r/root,kirbyherm/root-r-tools,perovic/root,sawenzel/root,olifre/root,mkret2/root,sbinet/cxx-root,arch1tect0r/root,nilqed/root,root-mirror/root,Y--/root,lgiommi/root,alexschlueter/cern-root,kirbyherm/root-r-tools,mkret2/root,esakellari/root,sbinet/cxx-root,jrtomps/root,arch1tect0r/root,smarinac/root,Y--/root,omazapa/root,karies/root,Dr15Jones/root,olifre/root,dfunke/root,karies/root,beniz/root,abhinavmoudgil95/root,jrtomps/root,krafczyk/root,evgeny-boger/root,bbockelm/root,evgeny-boger/root,veprbl/root,lgiommi/root,omazapa/root-old,nilqed/root,ffurano/root5,tc3t/qoot,evgeny-boger/root,root-mirror/root,esakellari/my_root_for_test,agarciamontoro/root,sawenzel/root,dfunke/root,mhuwiler/rootauto,kirbyherm/root-r-tools,pspe/root,georgtroska/root,esakellari/root,CristinaCristescu/root,vukasinmilosevic/root,perovic/root,Dr15Jones/root,thomaskeck/root,thomaskeck/root,evgeny-boger/root,nilqed/root,zzxuanyuan/root,buuck/root,BerserkerTroll/root,georgtroska/root,mkret2/root,CristinaCristescu/root,vukasinmilosevic/root,gbitzes/root,mhuwiler/rootauto,jrtomps/root,mhuwiler/rootauto,tc3t/qoot,smarinac/root,nilqed/root,thomaskeck/root,perovic/root,evgeny-boger/root,smarinac/root,krafczyk/root,CristinaCristescu/root,mkret2/root,vukasinmilosevic/root,omazapa/root-old,arch1tect0r/root,esakellari/my_root_for_test,alexschlueter/cern-root,smarinac/root,esakellari/root,ffurano/root5,BerserkerTroll/root,buuck/root,beniz/root,davidlt/root,lgiommi/root,zzxuanyuan/root,sawenzel/root,davidlt/root,gganis/root,Y--/root,root-mirror/root,perovic/root,krafczyk/root,satyarth934/root,georgtroska/root,agarciamontoro/root,Duraznos/root,veprbl/root,evgeny-boger/root,cxx-hep/root-cern,Y--/root,evgeny-boger/root,simonpf/root,arch1tect0r/root,cxx-hep/root-cern,vukasinmilosevic/root,satyarth934/root,cxx-hep/root-cern,satyarth934/root,davidlt/root,abhinavmoudgil95/root,omazapa/root-old,krafczyk/root,Y--/root,pspe/root,gganis/root,pspe/root,tc3t/qoot,jrtomps/root,esakellari/my_root_for_test,Duraznos/root,mattkretz/root,krafczyk/root,mhuwiler/rootauto,lgiommi/root,bbockelm/root,bbockelm/root,cxx-hep/root-cern,zzxuanyuan/root,agarciamontoro/root,sirinath/root,jrtomps/root,jrtomps/root,Dr15Jones/root,root-mirror/root,smarinac/root,beniz/root,root-mirror/root,davidlt/root,gganis/root,beniz/root,cxx-hep/root-cern,omazapa/root,0x0all/ROOT,davidlt/root,lgiommi/root,gbitzes/root,sirinath/root,BerserkerTroll/root,Y--/root,veprbl/root,dfunke/root,mhuwiler/rootauto,karies/root,omazapa/root-old,beniz/root,Duraznos/root,mattkretz/root,sbinet/cxx-root,gganis/root,nilqed/root,smarinac/root,dfunke/root,alexschlueter/cern-root,georgtroska/root,veprbl/root,tc3t/qoot,sirinath/root,BerserkerTroll/root,BerserkerTroll/root,jrtomps/root,dfunke/root,karies/root,dfunke/root,pspe/root,mattkretz/root,vukasinmilosevic/root,sawenzel/root,mhuwiler/rootauto,agarciamontoro/root,olifre/root,gbitzes/root,sirinath/root,BerserkerTroll/root,smarinac/root,mkret2/root,simonpf/root,abhinavmoudgil95/root,esakellari/root,bbockelm/root,buuck/root,georgtroska/root,jrtomps/root,thomaskeck/root,mhuwiler/rootauto,Duraznos/root,olifre/root,olifre/root,satyarth934/root,Dr15Jones/root,tc3t/qoot,gganis/root,Duraznos/root,nilqed/root,agarciamontoro/root,omazapa/root,pspe/root,karies/root,veprbl/root,BerserkerTroll/root,0x0all/ROOT,Dr15Jones/root,Duraznos/root,abhinavmoudgil95/root,0x0all/ROOT,mkret2/root,karies/root,CristinaCristescu/root,omazapa/root,olifre/root,perovic/root,sbinet/cxx-root,ffurano/root5,georgtroska/root,root-mirror/root,esakellari/root,mkret2/root,esakellari/my_root_for_test,zzxuanyuan/root,mhuwiler/rootauto,0x0all/ROOT,ffurano/root5,lgiommi/root,root-mirror/root,CristinaCristescu/root,ffurano/root5,lgiommi/root,lgiommi/root,Dr15Jones/root,perovic/root,omazapa/root,0x0all/ROOT,sirinath/root,tc3t/qoot,simonpf/root,dfunke/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root-compressor-dummy,gbitzes/root,nilqed/root,gbitzes/root,sbinet/cxx-root,mattkretz/root,smarinac/root,gganis/root,gbitzes/root,zzxuanyuan/root,pspe/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,davidlt/root,sirinath/root,strykejern/TTreeReader,ffurano/root5,gganis/root,Duraznos/root,esakellari/my_root_for_test,zzxuanyuan/root,dfunke/root,mhuwiler/rootauto,mhuwiler/rootauto,esakellari/root,krafczyk/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,strykejern/TTreeReader,perovic/root,omazapa/root-old,pspe/root,abhinavmoudgil95/root,Dr15Jones/root,Y--/root,lgiommi/root,omazapa/root-old,gbitzes/root,cxx-hep/root-cern,omazapa/root-old,veprbl/root,mkret2/root,simonpf/root,sawenzel/root,0x0all/ROOT,arch1tect0r/root,buuck/root,beniz/root,simonpf/root,kirbyherm/root-r-tools,buuck/root,arch1tect0r/root,kirbyherm/root-r-tools,agarciamontoro/root,agarciamontoro/root,nilqed/root,mkret2/root,pspe/root,CristinaCristescu/root,lgiommi/root,georgtroska/root,davidlt/root,bbockelm/root,veprbl/root,zzxuanyuan/root-compressor-dummy,esakellari/root,mattkretz/root,buuck/root,gbitzes/root,sbinet/cxx-root,simonpf/root,pspe/root,arch1tect0r/root,CristinaCristescu/root,evgeny-boger/root,kirbyherm/root-r-tools,omazapa/root-old,omazapa/root,omazapa/root,strykejern/TTreeReader,Duraznos/root,bbockelm/root,karies/root,nilqed/root,BerserkerTroll/root,satyarth934/root,krafczyk/root,davidlt/root,krafczyk/root,agarciamontoro/root,thomaskeck/root,gganis/root,krafczyk/root,vukasinmilosevic/root,esakellari/my_root_for_test,perovic/root,georgtroska/root,bbockelm/root,lgiommi/root,simonpf/root,esakellari/my_root_for_test,omazapa/root-old,BerserkerTroll/root,zzxuanyuan/root-compressor-dummy,Y--/root,zzxuanyuan/root,dfunke/root,thomaskeck/root,gbitzes/root,mkret2/root,esakellari/root,jrtomps/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,satyarth934/root,olifre/root,veprbl/root,evgeny-boger/root,sbinet/cxx-root,esakellari/root,abhinavmoudgil95/root,abhinavmoudgil95/root,sawenzel/root,CristinaCristescu/root,evgeny-boger/root,beniz/root,buuck/root,buuck/root,esakellari/root,Y--/root,zzxuanyuan/root-compressor-dummy,dfunke/root,smarinac/root,arch1tect0r/root,Duraznos/root,CristinaCristescu/root,tc3t/qoot,perovic/root,simonpf/root,gbitzes/root,gbitzes/root,arch1tect0r/root,simonpf/root,vukasinmilosevic/root,alexschlueter/cern-root,veprbl/root,sirinath/root