Don't send SIGINT to Py4J gateway subprocess.
Don't send SIGINT to Py4J gateway subprocess.

This addresses SPARK-885, a usability issue where PySpark's
Java gateway process would be killed if the user hit ctrl-c.

Note that SIGINT still won't cancel the running s

This fix is based on http://stackoverflow.com/questions/5045771

lxsmnv/spark,ibm-research-ireland/sparkoscope,zero323/spark,techaddict/spark,bravo-zhang/spark,apache-spark-on-k8s/spark,facaiy/spark,rednaxelafx/apache-spark,szhem/spark,lvdongr/spark,JoshRosen/spark,cin/spark,spark-test/spark,SnappyDataInc/spark,szhem/spark,tengpeng/spark,1haodian/spark,Panos-Bletsos/spark-cost-model-optimizer,gengliangwang/spark,MLnick/spark,wangmiao1981/spark,ueshin/apache-spark,mdespriee/spark,jkbradley/spark,apache-spark-on-k8s/spark,saturday-shi/spark,sachintyagi22/spark,jkbradley/spark,srowen/spark,liyichao/spark,zhouyejoe/spark,aray/spark,mkolod/incubator-spark,dhruve/spark,matthewfranglen/spark,yanboliang/spark,mahak/spark,adrian-ionescu/apache-spark,lvdongr/spark,facaiy/spark,janewangfb/spark,zzcclp/spark,MLnick/spark,MLnick/spark,zuotingbing/spark,joseph-torres/spark,ericvandenbergfb/spark,ericvandenbergfb/spark,ConeyLiu/spark,janewangfb/spark,dbtsai/spark,UndeadBaneGitHub/spark,kiszk/spark,1haodian/spark,Aegeaner/spark,liutang123/spark,1haodian/spark,chuckchen/spark,ptkool/spark,pgandhi999/spark,aosagie/spark,poffuomo/spark,ibm-research-ireland/sparkoscope,bdrillard/spark,srowen/spark,narahari92/spark,nilsgrabbert/spark,narahari92/spark,shaneknapp/spark,haowu80s/spark,actuaryzhang/spark,skonto/spark,SHASHANKB/spark,actuaryzhang/spark,hhbyyh/spark,hvanhovell/spark,wangmiao1981/spark,liutang123/spark,dhruve/spark,highfei2011/spark,debugger87/spark,sureshthalamati/spark,zuotingbing/spark,minixalpha/spark,chuckchen/spark,actuaryzhang/spark,adrian-ionescu/apache-spark,yanboliang/spark,bravo-zhang/spark,yanboliang/spark,taroplus/spark,metamx/spark,setjet/spark,brad-kaiser/spark,liyichao/spark,rekhajoshm/spark,markhamstra/spark,sahilTakiar/spark,ioana-delaney/spark,gengliangwang/spark,shubhamchopra/spark,shuangshuangwang/spark,apache-spark-on-k8s/spark,andrewor14/spark,UndeadBaneGitHub/spark,map222/spark,aray/spark,shuangshuangwang/spark,kissmetrics/spark,kiszk/spark,rednaxelafx/apache-spark,alunarbeach/spark,zzcclp/spark,ajaysaini725/spark,alunarbeach/spark,jkbradley/spark,aray/spark,akopich/spark,andrewor14/iolap,zhouyejoe/spark,narahari92/spark,sachintyagi22/spark,sahilTakiar/spark,wzhfy/spark,nlalevee/spark,akopich/spark,milliman/spark,techaddict/spark,tejasapatil/spark,kiszk/spark,shuangshuangwang/spark,tejasapatil/spark,rikima/spark,ericvandenbergfb/spark,icexelloss/spark,map222/spark,xflin/spark,dongjoon-hyun/spark,janewangfb/spark,JoshRosen/spark,ptkool/spark,cin/spark,shubhamchopra/spark,chuckchen/spark,pronix/spark,maropu/spark,alunarbeach/spark,ahnqirage/spark,patrick-nicholson/spark,wzhfy/spark,caneGuy/spark,xflin/spark,panfengfeng/spark,liyichao/spark,wangyum/spark,panfengfeng/spark,hhbyyh/spark,ddna1021/spark,poffuomo/spark,narahari92/spark,shaneknapp/spark,maropu/spark,adrian-ionescu/apache-spark,kimoonkim/spark,andrewor14/spark,jiangxb1987/spark,byakuinss/spark,aokolnychyi/spark,lvdongr/spark,andrewor14/spark,goldmedal/spark,highfei2011/spark,mike0sv/spark,goldmedal/spark,panfengfeng/spark,zhouyejoe/spark,sureshthalamati/spark,michalsenkyr/spark,rednaxelafx/apache-spark,skonto/spark,wangmiao1981/spark,MLnick/spark,gioenn/xSpark,taroplus/spark,UndeadBaneGitHub/spark,kevinyu98/spark,apache/spark,adrian-ionescu/apache-spark,apache/spark,gengliangwang/spark,sryza/spark,ioana-delaney/spark,xuanyuanking/spark,rednaxelafx/apache-spark,cloud-fan/spark,markhamstra/spark,skonto/spark,pgandhi999/spark,vinodkc/spark,nlalevee/spark,zhouyejoe/spark,alunarbeach/spark,WindCanDie/spark,dongjoon-hyun/spark,ron8hu/spark,Panos-Bletsos/spark-cost-model-optimizer,skonto/spark,xuanyuanking/spark,apache-spark-on-k8s/spark,shaneknapp/spark,jlopezmalla/spark,bdrillard/spark,LantaoJin/spark,pgandhi999/spark,setjet/spark,big-pegasus/spark,hvanhovell/spark,byakuinss/spark,darionyaphet/spark,dhruve/spark,ericvandenbergfb/spark,highfei2011/spark,cloudera/spark,joseph-torres/spark,sachintyagi22/spark,debugger87/spark,actuaryzhang/spark,Panos-Bletsos/spark-cost-model-optimizer,wzhfy/spark,kiszk/spark,jianran/spark,rezasafi/spark,maropu/spark,Aegeaner/spark,someorz/spark,panfengfeng/spark,kissmetrics/spark,liutang123/spark,tengpeng/spark,jrshust/spark,wzhfy/spark,rezasafi/spark,zero323/spark,vinodkc/spark,mike0sv/spark,Panos-Bletsos/spark-cost-model-optimizer,loneknightpy/spark,ConeyLiu/spark,pgandhi999/spark,jianran/spark,nilsgrabbert/spark,xuanyuanking/spark,Panos-Bletsos/spark-cost-model-optimizer,maropu/spark,debugger87/spark,facaiy/spark,ioana-delaney/spark,big-pegasus/spark,dbtsai/spark,caneGuy/spark,poffuomo/spark,BryanCutler/spark,sahilTakiar/spark,apache/spark,gioenn/xSpark,mkolod/incubator-spark,spark-test/spark,kimoonkim/spark,bdrillard/spark,taroplus/spark,dhruve/spark,apache-spark-on-k8s/spark,skonto/spark,loneknightpy/spark,mahak/spark,jianran/spark,mzl9039/spark,haowu80s/spark,kimoonkim/spark,minixalpha/spark,adrian-ionescu/apache-spark,pronix/spark,ibm-research-ireland/sparkoscope,jianran/spark,hhbyyh/spark,saturday-shi/spark,wangmiao1981/spark,cloud-fan/spark,ueshin/apache-spark,sachintyagi22/spark,ptkool/spark,publicRoman/spark,loneknightpy/spark,sahilTakiar/spark,brad-kaiser/spark,ron8hu/spark,michalsenkyr/spark,HyukjinKwon/spark,patrick-nicholson/spark,rekhajoshm/spark,ajaysaini725/spark,aosagie/spark,huang1900/spark,dongjoon-hyun/spark,zuotingbing/spark,stanzhai/spark,shubhamchopra/spark,poffuomo/spark,ptkool/spark,joseph-torres/spark,wzhfy/spark,stanzhai/spark,sureshthalamati/spark,eyalfa/spark,hvanhovell/spark,jrshust/spark,pronix/spark,big-pegasus/spark,joseph-torres/spark,darionyaphet/spark,holdenk/spark,tengpeng/spark,dbtsai/spark,wzhfy/spark,metamx/spark,wangyum/spark,aosagie/spark,rekhajoshm/spark,setjet/spark,HyukjinKwon/spark,andrewor14/spark,bOOm-X/spark,caneGuy/spark,chuckchen/spark,WindCanDie/spark,JoshRosen/spark,patrick-nicholson/spark,jiangxb1987/spark,rezasafi/spark,facaiy/spark,joseph-torres/spark,sryza/spark,bdrillard/spark,kimoonkim/spark,wzhfy/spark,cin/spark,kimoonkim/spark,guoxiaolongzte/spark,LantaoJin/spark,milliman/spark,tejasapatil/spark,michalsenkyr/spark,patrick-nicholson/spark,witgo/spark,ioana-delaney/spark,ajaysaini725/spark,aosagie/spark,someorz/spark,ioana-delaney/spark,saltstar/spark,publicRoman/spark,brad-kaiser/spark,esi-mineset/spark,hhbyyh/spark,big-pegasus/spark,ron8hu/spark,jrshust/spark,andrewor14/spark,SHASHANKB/spark,andrewor14/spark,WindCanDie/spark,holdenk/spark,witgo/spark,mdespriee/spark,liyichao/spark,jianran/spark,wangmiao1981/spark,cloud-fan/spark,ddna1021/spark,chuckchen/spark,andrewor14/iolap,cin/spark,apache-spark-on-k8s/spark,cin/spark,metamx/spark,BryanCutler/spark,lvdongr/spark,spark-test/spark,szhem/spark,dhruve/spark,tengpeng/spark,darionyaphet/spark,nlalevee/spark,ueshin/apache-spark,holdenk/spark,pgandhi999/spark,stanzhai/spark,dhruve/spark,brad-kaiser/spark,bravo-zhang/spark,michalsenkyr/spark,debugger87/spark,mdespriee/spark,patrick-nicholson/spark,pgandhi999/spark,UndeadBaneGitHub/spark,dotunolafunmiloye/spark,mzl9039/spark,eyalfa/spark,mike0sv/spark,caneGuy/spark,WindCanDie/spark,dotunolafunmiloye/spark,rekhajoshm/spark,bravo-zhang/spark,MLnick/spark,big-pegasus/spark,nlalevee/spark,metamx/spark,mkolod/incubator-spark,lxsmnv/spark,SnappyDataInc/spark,yanboliang/spark,Aegeaner/spark,saltstar/spark,LantaoJin/spark,esi-mineset/spark,nilsgrabbert/spark,SHASHANKB/spark,kevinyu98/spark,bravo-zhang/spark,rezasafi/spark,xflin/spark,techaddict/spark,spark-test/spark,apache-spark-on-k8s/spark,ericvandenbergfb/spark,apache/spark,icexelloss/spark,WeichenXu123/spark,zero323/spark,goldmedal/spark,darionyaphet/spark,darionyaphet/spark,panfengfeng/spark,ibm-research-ireland/sparkoscope,nilsgrabbert/spark,bOOm-X/spark,huang1900/spark,setjet/spark,guoxiaolongzte/spark,UndeadBaneGitHub/spark,minixalpha/spark,milliman/spark,MLnick/spark,ConeyLiu/spark,minixalpha/spark,rezasafi/spark,actuaryzhang/spark,byakuinss/spark,setjet/spark,mzl9039/spark,JerryLead/spark,nchammas/spark,sureshthalamati/spark,zero323/spark,skonto/spark,metamx/spark,haowu80s/spark,sachintyagi22/spark,markhamstra/spark,saturday-shi/spark,zhouyejoe/spark,poffuomo/spark,ConeyLiu/spark,WindCanDie/spark,andrewor14/iolap,mike0sv/spark,aray/spark,xuanyuanking/spark,ddna1021/spark,zero323/spark,cloudera/spark,goldmedal/spark,debugger87/spark,ptkool/spark,HyukjinKwon/spark,sryza/spark,kevinyu98/spark,highfei2011/spark,gioenn/xSpark,markhamstra/spark,xflin/spark,aray/spark,guoxiaolongzte/spark,SHASHANKB/spark,esi-mineset/spark,lvdongr/spark,yanboliang/spark,WindCanDie/spark,byakuinss/spark,maropu/spark,rikima/spark,aokolnychyi/spark,nilsgrabbert/spark,BryanCutler/spark,gengliangwang/spark,shubhamchopra/spark,apache/spark,huang1900/spark,Panos-Bletsos/spark-cost-model-optimizer,lvdongr/spark,rikima/spark,someorz/spark,techaddict/spark,someorz/spark,Panos-Bletsos/spark-cost-model-optimizer,guoxiaolongzte/spark,icexelloss/spark,ddna1021/spark,gioenn/xSpark,jlopezmalla/spark,sureshthalamati/spark,cloudera/spark,wangyum/spark,Aegeaner/spark,WeichenXu123/spark,facaiy/spark,minixalpha/spark,sahilTakiar/spark,ptkool/spark,haowu80s/spark,taroplus/spark,sryza/spark,JoshRosen/spark,ueshin/apache-spark,saltstar/spark,shuangshuangwang/spark,kiszk/spark,dotunolafunmiloye/spark,spark-test/spark,zhouyejoe/spark,mzl9039/spark,zuotingbing/spark,akopich/spark,zero323/spark,bOOm-X/spark,guoxiaolongzte/spark,maropu/spark,Aegeaner/spark,bdrillard/spark,cloudera/spark,highfei2011/spark,ddna1021/spark,milliman/spark,gengliangwang/spark,bOOm-X/spark,map222/spark,tengpeng/spark,saturday-shi/spark,loneknightpy/spark,tengpeng/spark,panfengfeng/spark,jkbradley/spark,nchammas/spark,andrewor14/spark,zuotingbing/spark,WeichenXu123/spark,kimoonkim/spark,pronix/spark,vinodkc/spark,cloud-fan/spark,kissmetrics/spark,maropu/spark,JoshRosen/spark,gioenn/xSpark,JerryLead/spark,dbtsai/spark,sryza/spark,haowu80s/spark,aray/spark,map222/spark,someorz/spark,mahak/spark,loneknightpy/spark,WeichenXu123/spark,pronix/spark,taroplus/spark,ericvandenbergfb/spark,patrick-nicholson/spark,ron8hu/spark,liutang123/spark,jiangxb1987/spark,aokolnychyi/spark,someorz/spark,ibm-research-ireland/sparkoscope,dbtsai/spark,huang1900/spark,UndeadBaneGitHub/spark,darionyaphet/spark,UndeadBaneGitHub/spark,HyukjinKwon/spark,bOOm-X/spark,SnappyDataInc/spark,JerryLead/spark,kimoonkim/spark,narahari92/spark,srowen/spark,eyalfa/spark,poffuomo/spark,ahnqirage/spark,zhouyejoe/spark,milliman/spark,rikima/spark,patrick-nicholson/spark,michalsenkyr/spark,sahilTakiar/spark,shubhamchopra/spark,szhem/spark,1haodian/spark,saturday-shi/spark,mkolod/incubator-spark,andrewor14/iolap,mdespriee/spark,hvanhovell/spark,WeichenXu123/spark,akopich/spark,michalsenkyr/spark,ron8hu/spark,cloudera/spark,zzcclp/spark,darionyaphet/spark,jkbradley/spark,caneGuy/spark,jrshust/spark,MLnick/spark,xflin/spark,facaiy/spark,ioana-delaney/spark,shuangshuangwang/spark,nchammas/spark,ahnqirage/spark,highfei2011/spark,mike0sv/spark,jianran/spark,chuckchen/spark,shaneknapp/spark,janewangfb/spark,bOOm-X/spark,spark-test/spark,kiszk/spark,holdenk/spark,saturday-shi/spark,liutang123/spark,sahilTakiar/spark,skonto/spark,janewangfb/spark,dongjoon-hyun/spark,SnappyDataInc/spark,bravo-zhang/spark,akopich/spark,WeichenXu123/spark,rednaxelafx/apache-spark,pronix/spark,jlopezmalla/spark,lxsmnv/spark,ajaysaini725/spark,markhamstra/spark,zuotingbing/spark,huang1900/spark,WeichenXu123/spark,mike0sv/spark,goldmedal/spark,kissmetrics/spark,publicRoman/spark,xuanyuanking/spark,BryanCutler/spark,metamx/spark,SHASHANKB/spark,saltstar/spark,setjet/spark,jiangxb1987/spark,JerryLead/spark,map222/spark,rikima/spark,janewangfb/spark,markhamstra/spark,witgo/spark,JoshRosen/spark,andrewor14/iolap,esi-mineset/spark,map222/spark,shuangshuangwang/spark,mdespriee/spark,debugger87/spark,adrian-ionescu/apache-spark,byakuinss/spark,HyukjinKwon/spark,hhbyyh/spark,JerryLead/spark,pgandhi999/spark,saltstar/spark,janewangfb/spark,Aegeaner/spark,mahak/spark,liyichao/spark,icexelloss/spark,shaneknapp/spark,ahnqirage/spark,saturday-shi/spark,guoxiaolongzte/spark,joseph-torres/spark,publicRoman/spark,gengliangwang/spark,lxsmnv/spark,publicRoman/spark,kevinyu98/spark,taroplus/spark,spark-test/spark,hhbyyh/spark,mzl9039/spark,someorz/spark,big-pegasus/spark,vinodkc/spark,1haodian/spark,loneknightpy/spark,aokolnychyi/spark,ddna1021/spark,kevinyu98/spark,bOOm-X/spark,jlopezmalla/spark,rezasafi/spark,szhem/spark,jkbradley/spark,akopich/spark,wangyum/spark,zuotingbing/spark,sachintyagi22/spark,aray/spark,srowen/spark,alunarbeach/spark,BryanCutler/spark,Aegeaner/spark,icexelloss/spark,SnappyDataInc/spark,eyalfa/spark,LantaoJin/spark,stanzhai/spark,setjet/spark,hvanhovell/spark,szhem/spark,rekhajoshm/spark,yanboliang/spark,rikima/spark,map222/spark,rednaxelafx/apache-spark,eyalfa/spark,jrshust/spark,rekhajoshm/spark,SnappyDataInc/spark,srowen/spark,jiangxb1987/spark,techaddict/spark,wangyum/spark,narahari92/spark,aosagie/spark,xflin/spark,andrewor14/iolap,BryanCutler/spark,wangmiao1981/spark,rekhajoshm/spark,ahnqirage/spark,bravo-zhang/spark,WindCanDie/spark,cin/spark,LantaoJin/spark,HyukjinKwon/spark,techaddict/spark,ajaysaini725/spark,SHASHANKB/spark,holdenk/spark,andrewor14/iolap,cloud-fan/spark,jlopezmalla/spark,chuckchen/spark,facaiy/spark,nchammas/spark,eyalfa/spark,rezasafi/spark,cloud-fan/spark,zero323/spark,nchammas/spark,apache/spark,kissmetrics/spark,JerryLead/spark,jiangxb1987/spark,actuaryzhang/spark,huang1900/spark,BryanCutler/spark,witgo/spark,actuaryzhang/spark,jkbradley/spark,milliman/spark,ron8hu/spark,ajaysaini725/spark,saltstar/spark,jianran/spark,holdenk/spark,gioenn/xSpark,debugger87/spark,michalsenkyr/spark,ueshin/apache-spark,big-pegasus/spark,ueshin/apache-spark,aosagie/spark,ron8hu/spark,sureshthalamati/spark,zzcclp/spark,nchammas/spark,lvdongr/spark,kiszk/spark,ahnqirage/spark,alunarbeach/spark,tengpeng/spark,rednaxelafx/apache-spark,cloud-fan/spark,huang1900/spark,hhbyyh/spark,minixalpha/spark,zzcclp/spark,mdespriee/spark,vinodkc/spark,jlopezmalla/spark,bdrillard/spark,SHASHANKB/spark,stanzhai/spark,mahak/spark,apache/spark,hvanhovell/spark,byakuinss/spark,mzl9039/spark,vinodkc/spark,HyukjinKwon/spark,bdrillard/spark,lxsmnv/spark,nlalevee/spark,shaneknapp/spark,cin/spark,gengliangwang/spark,brad-kaiser/spark,goldmedal/spark,minixalpha/spark,nlalevee/spark,jrshust/spark,gioenn/xSpark,caneGuy/spark,ericvandenbergfb/spark,ConeyLiu/spark,witgo/spark,guoxiaolongzte/spark,esi-mineset/spark,szhem/spark,wangyum/spark,mzl9039/spark,yanboliang/spark,xflin/spark,JerryLead/spark,ahnqirage/spark,eyalfa/spark,nilsgrabbert/spark,icexelloss/spark,esi-mineset/spark,srowen/spark,brad-kaiser/spark,kevinyu98/spark,stanzhai/spark,esi-mineset/spark,narahari92/spark,shubhamchopra/spark,tejasapatil/spark,ConeyLiu/spark,xuanyuanking/spark,ConeyLiu/spark,zzcclp/spark,kevinyu98/spark,jiangxb1987/spark,xuanyuanking/spark,icexelloss/spark,ptkool/spark,adrian-ionescu/apache-spark,dbtsai/spark,nchammas/spark,lxsmnv/spark,dhruve/spark,saltstar/spark,akopich/spark,tejasapatil/spark,aokolnychyi/spark,wangyum/spark,liutang123/spark,aokolnychyi/spark,ajaysaini725/spark,liyichao/spark,taroplus/spark,alunarbeach/spark,tejasapatil/spark,mahak/spark,nilsgrabbert/spark,stanzhai/spark,brad-kaiser/spark,shuangshuangwang/spark,dotunolafunmiloye/spark,publicRoman/spark,shaneknapp/spark,liutang123/spark,srowen/spark,zzcclp/spark,loneknightpy/spark,caneGuy/spark,kissmetrics/spark,highfei2011/spark,aokolnychyi/spark,haowu80s/spark,wangmiao1981/spark,hvanhovell/spark,rikima/spark,tejasapatil/spark,techaddict/spark,mike0sv/spark,sureshthalamati/spark,aosagie/spark,mkolod/incubator-spark,sachintyagi22/spark,ibm-research-ireland/sparkoscope,dongjoon-hyun/spark,metamx/spark,publicRoman/spark,LantaoJin/spark,goldmedal/spark,kissmetrics/spark,ibm-research-ireland/sparkoscope,dongjoon-hyun/spark,ddna1021/spark,panfengfeng/spark,SnappyDataInc/spark,jlopezmalla/spark,byakuinss/spark,milliman/spark,mdespriee/spark,markhamstra/spark,jrshust/spark,vinodkc/spark,1haodian/spark,joseph-torres/spark,lxsmnv/spark,mahak/spark,LantaoJin/spark,liyichao/spark,holdenk/spark,witgo/spark,dbtsai/spark,1haodian/spark,JoshRosen/spark,dongjoon-hyun/spark,ueshin/apache-spark,ioana-delaney/spark,shubhamchopra/spark,poffuomo/spark,witgo/spark,nlalevee/spark