Add env var shutdown_timeout to kernel to avoid deadlock on node shutdown
Add env var shutdown_timeout to kernel to avoid deadlock on node shutdown

When a node is shutting down, application_controller will do
exit(Pid,shutdown) on all application masters, and wait for
{'EXIT',Pid,_}. If, for some reason, the application master does not
terminate then application_controller will hang forever waiting for
this 'EXIT' message.

To overcome this problem, a configurable timer is added to kernel -
the enviroment variable 'shutdown_timeout'. If this variable is set to
a positive integer T, application_controller will do exit(Pid,kill)
after T milli seconds if no 'EXIT' message is received.

electricimp/otp,isvilen/otp,kvakvs/otp,goertzenator/otp,RGafiyatullin/otp,getong/otp,saleyn/otp,lhslll/otp,msantos/otp,falkevik/otp,lightcyphers/otp,mujiatong/otp,hairyhum/otp,uabboli/otp,goertzenator/otp,beni55/otp,RaimoNiskanen/otp,bsmr-erlang/otp,NOMORECOFFEE/otp,c-rack/otp,emile/otp,lhslll/otp,gjaldon/otp,Teino1978-Corp/erlang-otp,emile/otp,mujiatong/otp,RoadRunnr/otp,erlang/otp,lucafavatella/otp,release-project/otp,schlagert/otp,marquisthunder/otp,palas/otp,enikki/otp,dgud/otp,dumbbell/otp,theom/otp,g-andrade/otp,benoitc/otp-1,GinjaNinja32/otp,isvilen/otp,getong/otp,rlipscombe/otp,c-rack/otp,paulcager/otp,klarna/otp,lantti/otp,bernardd/otp,rlipscombe/otp,saleyn/otp,RGafiyatullin/otp,kvakvs/otp,saleyn/otp,vic/otp,tuncer/otp,NOMORECOFFEE/otp,rlipscombe/otp,dumbbell/otp,tuncer/otp,fenollp/otp,legoscia/otp,basho/otp,emacsmirror/erlang,awetzel/otp,gjaldon/otp,cnbin/otp,GinjaNinja32/otp,vinoski/otp,enikki/otp,RJ/otp,yangchengjian/otp,johanclaesson/otp,emile/otp,fenollp/otp,isvilen/otp,dgud/otp,mikpe/otp,RGafiyatullin/otp,platinumthinker/otp,lhslll/otp,lemenkov/otp,bugs-erlang-org/otp,ader1990/otp,jj1bdx/otp,enikki/otp,falkevik/otp,johanclaesson/otp,neeraj9/otp,sdebnath/otp,enikki/otp,krishnakumar4a4/otp,lantti/otp,lucafavatella/otp,lrascao/otp,haguenau/otp,mujiatong/otp,aboroska/otp,haguenau/otp,RJ/otp,Teino1978-Corp/otp,getong/otp,klarna/otp,yangchengjian/otp,palas/otp,bjorng/otp,cnbin/otp,riverrun/otp,massemanet/otp,bugs-erlang-org/otp,VincentHHL/otp,VincentHHL/otp,ahmedshafeeq/otp,potatosalad/otp,bjorng/otp,lucafavatella/otp,cobusc/otp,krishnakumar4a4/otp,lianghaivv/otp,lemenkov/otp,RichMorin/otp,mikpe/otp,platinumthinker/otp,gjaldon/otp,weisslj/otp,mikpe/otp,derek121/otp,ferd/otp,bernardd/otp,awetzel/otp,paulcager/otp,palas/otp,lrascao/otp,saleyn/otp,jinshana/otp,vinoski/otp,tuncer/otp,VincentHHL/otp,basho/otp,lightcyphers/otp,haguenau/otp,kvakvs/otp,falkevik/otp,paladim/otp,isvilen/otp,awetzel/otp,lianghaivv/otp,RJ/otp,mikpe/otp,kvakvs/otp,bjorng/otp,ferd/otp,matwey/otp,schlagert/otp,isvilen/otp,lrascao/otp,matwey/otp,vladdu/otp,awetzel/otp,basho/otp,release-project/otp,theom/otp,ader1990/otp,johanclaesson/otp,weisslj/otp,johanclaesson/otp,sammoth-wazoku/otp,RaimoNiskanen/otp,release-project/otp,jinshana/otp,lhslll/otp,schlagert/otp,g-andrade/otp,lianghaivv/otp,psyeugenic/otp,falkevik/otp,beni55/otp,bernardd/otp,jemsbhai/otp,marquisthunder/otp,ader1990/otp,Teino1978-Corp/otp,sammoth-wazoku/otp,emile/otp,fenollp/otp,entropiae/otp,bjorng/otp,matwey/otp,lhslll/otp,ader1990/otp,NOMORECOFFEE/otp,lucafavatella/otp,marquisthunder/otp,stolen/otp,matwey/otp,lhslll/otp,emacsmirror/erlang,VincentHHL/otp,lrascao/otp,ferd/otp,mujiatong/otp,emacsmirror/erlang,psyeugenic/otp,legoscia/otp,psyeugenic/otp,RJ/otp,cobusc/otp,electricimp/otp,msantos/otp,potatosalad/otp,paladim/otp,erlang/otp,matwey/otp,vic/otp,mikpe/otp,Teino1978-Corp/otp,isvilen/otp,bjorng/otp,haguenau/otp,sdebnath/otp,getong/otp,emacsmirror/erlang,bugs-erlang-org/otp,bugs-erlang-org/otp,cobusc/otp,benoitc/otp-1,platinumthinker/otp,dumbbell/otp,goertzenator/otp,gjaldon/otp,hairyhum/otp,marquisthunder/otp,RGafiyatullin/otp,legoscia/otp,hairyhum/otp,johanclaesson/otp,palas/otp,rlipscombe/otp,bernardd/otp,awetzel/otp,GinjaNinja32/otp,tuncer/otp,enikki/otp,ahmedshafeeq/otp,jinshana/otp,klarna/otp,vic/otp,msantos/otp,theom/otp,sitexa/otp,lucafavatella/otp,palas/otp,legoscia/otp,ader1990/otp,matwey/otp,gjaldon/otp,Teino1978-Corp/otp,jemsbhai/otp,paulcager/otp,vic/otp,electricimp/otp,NOMORECOFFEE/otp,lrascao/otp,potatosalad/otp,vladdu/otp,bugs-erlang-org/otp,vinoski/otp,cobusc/otp,lianghaivv/otp,cnbin/otp,cobusc/otp,msantos/otp,NOMORECOFFEE/otp,theom/otp,weisslj/otp,bsmr-erlang/otp,tuncer/otp,jemsbhai/otp,cnbin/otp,cnbin/otp,kvakvs/otp,tuncer/otp,entropiae/otp,Teino1978-Corp/otp,weisslj/otp,lemenkov/otp,getong/otp,ahmedshafeeq/otp,johanclaesson/otp,derek121/otp,RaimoNiskanen/otp,emacsmirror/erlang,getong/otp,bjorng/otp,bernardd/otp,bernardd/otp,dgud/otp,theom/otp,haguenau/otp,weisslj/otp,weisslj/otp,lightcyphers/otp,krishnakumar4a4/otp,jemsbhai/otp,mikpe/otp,dumbbell/otp,klarna/otp,stolen/otp,basho/otp,bernardd/otp,rlipscombe/otp,riverrun/otp,sitexa/otp,msantos/otp,marquisthunder/otp,g-andrade/otp,jemsbhai/otp,hairyhum/otp,falkevik/otp,vladdu/otp,Teino1978-Corp/erlang-otp,stolen/otp,emacsmirror/erlang,riverrun/otp,sitexa/otp,sitexa/otp,release-project/otp,vinoski/otp,jamesruan/otp,release-project/otp,erlang/otp,isvilen/otp,sdebnath/otp,platinumthinker/otp,erlang/otp,rlipscombe/otp,neeraj9/otp,jemsbhai/otp,palas/otp,goertzenator/otp,dgud/otp,GinjaNinja32/otp,mujiatong/otp,sammoth-wazoku/otp,RGafiyatullin/otp,goertzenator/otp,GinjaNinja32/otp,cnbin/otp,goertzenator/otp,getong/otp,krishnakumar4a4/otp,RoadRunnr/otp,enikki/otp,stolen/otp,dgud/otp,mikpe/otp,RaimoNiskanen/otp,VincentHHL/otp,lemenkov/otp,platinumthinker/otp,entropiae/otp,c-rack/otp,RaimoNiskanen/otp,massemanet/otp,gjaldon/otp,g-andrade/otp,legoscia/otp,paulcager/otp,fenollp/otp,rlipscombe/otp,vladdu/otp,lrascao/otp,aboroska/otp,ferd/otp,RichMorin/otp,hairyhum/otp,jemsbhai/otp,basho/otp,platinumthinker/otp,paulcager/otp,electricimp/otp,kvakvs/otp,paladim/otp,beni55/otp,dumbbell/otp,neeraj9/otp,bsmr-erlang/otp,RaimoNiskanen/otp,ader1990/otp,neeraj9/otp,tuncer/otp,vic/otp,awetzel/otp,lrascao/otp,jamesruan/otp,dgud/otp,gjaldon/otp,RoadRunnr/otp,vinoski/otp,uabboli/otp,vinoski/otp,klarna/otp,schlagert/otp,msantos/otp,electricimp/otp,RaimoNiskanen/otp,fenollp/otp,paladim/otp,jj1bdx/otp,marquisthunder/otp,bsmr-erlang/otp,jamesruan/otp,aboroska/otp,bsmr-erlang/otp,fenollp/otp,GinjaNinja32/otp,isvilen/otp,krishnakumar4a4/otp,g-andrade/otp,lhslll/otp,bugs-erlang-org/otp,jamesruan/otp,RaimoNiskanen/otp,derek121/otp,emacsmirror/erlang,RGafiyatullin/otp,RoadRunnr/otp,msantos/otp,getong/otp,lantti/otp,lightcyphers/otp,RichMorin/otp,lantti/otp,sdebnath/otp,RichMorin/otp,jemsbhai/otp,gjaldon/otp,emacsmirror/erlang,ader1990/otp,kvakvs/otp,riverrun/otp,psyeugenic/otp,sammoth-wazoku/otp,lemenkov/otp,yangchengjian/otp,bugs-erlang-org/otp,jj1bdx/otp,theom/otp,dgud/otp,Teino1978-Corp/erlang-otp,sitexa/otp,lemenkov/otp,cobusc/otp,platinumthinker/otp,riverrun/otp,ahmedshafeeq/otp,yangchengjian/otp,ferd/otp,jj1bdx/otp,sdebnath/otp,rlipscombe/otp,ferd/otp,saleyn/otp,marquisthunder/otp,vic/otp,sammoth-wazoku/otp,lrascao/otp,emile/otp,beni55/otp,c-rack/otp,uabboli/otp,isvilen/otp,jinshana/otp,erlang/otp,lightcyphers/otp,vic/otp,lightcyphers/otp,bsmr-erlang/otp,jamesruan/otp,kvakvs/otp,lantti/otp,RoadRunnr/otp,RJ/otp,aboroska/otp,lucafavatella/otp,lianghaivv/otp,lantti/otp,psyeugenic/otp,cobusc/otp,palas/otp,getong/otp,jinshana/otp,johanclaesson/otp,VincentHHL/otp,RichMorin/otp,matwey/otp,emile/otp,msantos/otp,mujiatong/otp,derek121/otp,derek121/otp,bsmr-erlang/otp,mikpe/otp,paulcager/otp,VincentHHL/otp,goertzenator/otp,lemenkov/otp,RoadRunnr/otp,ferd/otp,aboroska/otp,yangchengjian/otp,release-project/otp,basho/otp,uabboli/otp,vinoski/otp,basho/otp,Teino1978-Corp/otp,bsmr-erlang/otp,jinshana/otp,massemanet/otp,ader1990/otp,benoitc/otp-1,beni55/otp,lianghaivv/otp,bjorng/otp,theom/otp,palas/otp,entropiae/otp,sammoth-wazoku/otp,benoitc/otp-1,entropiae/otp,GinjaNinja32/otp,c-rack/otp,lightcyphers/otp,erlang/otp,RGafiyatullin/otp,saleyn/otp,RGafiyatullin/otp,g-andrade/otp,jj1bdx/otp,isvilen/otp,dumbbell/otp,bugs-erlang-org/otp,theom/otp,RoadRunnr/otp,RichMorin/otp,jinshana/otp,Teino1978-Corp/otp,jamesruan/otp,RJ/otp,jinshana/otp,klarna/otp,RJ/otp,tuncer/otp,falkevik/otp,RoadRunnr/otp,g-andrade/otp,bjorng/otp,ahmedshafeeq/otp,erlang/otp,sammoth-wazoku/otp,VincentHHL/otp,schlagert/otp,emacsmirror/erlang,weisslj/otp,stolen/otp,g-andrade/otp,klarna/otp,c-rack/otp,paladim/otp,dumbbell/otp,sdebnath/otp,emacsmirror/erlang,lemenkov/otp,lightcyphers/otp,derek121/otp,goertzenator/otp,RJ/otp,potatosalad/otp,lantti/otp,dgud/otp,RoadRunnr/otp,vladdu/otp,lucafavatella/otp,RichMorin/otp,vladdu/otp,johanclaesson/otp,mikpe/otp,legoscia/otp,RichMorin/otp,haguenau/otp,Teino1978-Corp/erlang-otp,potatosalad/otp,jj1bdx/otp,getong/otp,falkevik/otp,dumbbell/otp,electricimp/otp,ahmedshafeeq/otp,saleyn/otp,entropiae/otp,sdebnath/otp,lantti/otp,potatosalad/otp,platinumthinker/otp,lianghaivv/otp,potatosalad/otp,weisslj/otp,benoitc/otp-1,weisslj/otp,uabboli/otp,yangchengjian/otp,vinoski/otp,neeraj9/otp,aboroska/otp,emile/otp,schlagert/otp,riverrun/otp,jj1bdx/otp,hairyhum/otp,electricimp/otp,sdebnath/otp,emile/otp,benoitc/otp-1,paladim/otp,benoitc/otp-1,emile/otp,dgud/otp,uabboli/otp,paulcager/otp,paladim/otp,mikpe/otp,Teino1978-Corp/erlang-otp,uabboli/otp,falkevik/otp,RaimoNiskanen/otp,marquisthunder/otp,saleyn/otp,lhslll/otp,kvakvs/otp,massemanet/otp,paulcager/otp,uabboli/otp,neeraj9/otp,awetzel/otp,stolen/otp,basho/otp,potatosalad/otp,hairyhum/otp,derek121/otp,NOMORECOFFEE/otp,Teino1978-Corp/erlang-otp,sitexa/otp,bjorng/otp,g-andrade/otp,cnbin/otp,saleyn/otp,benoitc/otp-1,ferd/otp,jamesruan/otp,sitexa/otp,matwey/otp,sitexa/otp,stolen/otp,release-project/otp,krishnakumar4a4/otp,erlang/otp,schlagert/otp,jj1bdx/otp,aboroska/otp,c-rack/otp,rlipscombe/otp,klarna/otp,basho/otp,Teino1978-Corp/erlang-otp,Teino1978-Corp/erlang-otp,cobusc/otp,uabboli/otp,fenollp/otp,yangchengjian/otp,ahmedshafeeq/otp,mujiatong/otp,psyeugenic/otp,erlang/otp,cnbin/otp,potatosalad/otp,g-andrade/otp,legoscia/otp,bjorng/otp,vinoski/otp,jamesruan/otp,dumbbell/otp,vladdu/otp,mujiatong/otp,bernardd/otp,bsmr-erlang/otp,neeraj9/otp,rlipscombe/otp,vladdu/otp,fenollp/otp,release-project/otp,legoscia/otp,entropiae/otp,beni55/otp,legoscia/otp,potatosalad/otp,krishnakumar4a4/otp,massemanet/otp,riverrun/otp,electricimp/otp,psyeugenic/otp,lianghaivv/otp,vinoski/otp,paladim/otp,aboroska/otp,jj1bdx/otp,c-rack/otp,haguenau/otp,NOMORECOFFEE/otp,ferd/otp,haguenau/otp,falkevik/otp,goertzenator/otp,massemanet/otp,Teino1978-Corp/otp,derek121/otp,electricimp/otp,GinjaNinja32/otp,vladdu/otp,lrascao/otp,fenollp/otp,tuncer/otp,enikki/otp,riverrun/otp,entropiae/otp,jj1bdx/otp,release-project/otp,beni55/otp,neeraj9/otp,matwey/otp,schlagert/otp,psyeugenic/otp,stolen/otp,bernardd/otp,dumbbell/otp,ahmedshafeeq/otp,sammoth-wazoku/otp,vic/otp,awetzel/otp,ahmedshafeeq/otp,beni55/otp,dgud/otp,krishnakumar4a4/otp,lucafavatella/otp,aboroska/otp,massemanet/otp,enikki/otp,hairyhum/otp,erlang/otp,massemanet/otp,NOMORECOFFEE/otp,massemanet/otp,yangchengjian/otp