Fix issues in nsenter.c and console handling
Fix issues in nsenter.c and console handling

Signed-off-by: Michael Crosby <17b9e1c64588c7fa6419b4d29dc1f4426279ba01@docker.com>

thaJeztah/libcontainer,ZJU-SEL/runc,hqhq/libcontainer,stefanberger/runc,han-wang/runc,carlye566/runc,avagin/libcontainer,kolyshkin/runc,sunyuan3/runc,wcwxyz/runc,lizf-os/runc,clnperez/runc,navidshaikh/runc,mYmNeo/runc,shishir-a412ed/runc,shishir-a412ed/runc,abduld/runc,mrunalp/runc,carlye566/runc,dieface/runc,ChengTiesheng/runc,crosbymichael/libcontainer,mrunalp/libcontainer,boucher/libcontainer,whuwxl/libcontainer,ekuric/runc,zenlinTechnofreak/runc,runcom/libcontainer,aidanhs/runc,jhjeong-kr/runc,opencontainers/runc,crosbymichael/runc,whuwxl/libcontainer,wangkirin/runc,clnperez/runc,willmtemple/runc,crosbymichael/libcontainer,talwai/runc,sallyom/runc,dqminh/runc,mrunalp/runc,sunyuan3/runc,ddnbgroup/runc,keloyang/runc,dqminh/runc,tangkun75/libcontainer,LK4D4/runc,rhatdan/libcontainer,estesp/runc,YujiOshima/runc,ycaihua/runc,runcom/runc,subuser-security/runc,navidshaikh/runc,cyphar/runc,dqminh/runc,thaJeztah/libcontainer,rootfs/runc,vbatts/runc,YujiOshima/runc,markllama/runc,ycaihua/libcontainer,hqhq/runc,haijunTan/runc,dqminh/libcontainer,kolyshkin/runc,HuKeping/runc,rajasec/runc,jwuwork/runc,icecrime/libcontainer,tangkun75/libcontainer,Microsoft/libcontainer,albertoleal/runc,runcom/libcontainer,whosthatknocking/runc,SaiedKazemi/libcontainer-criu,coolljt0725/runc,HardikDR/runc,gwoo/runc,markllama/runc,whosthatknocking/runc,hqhq/runc,stefanberger/runc,rsampaio/runc,kolyshkin/runc,sallyom/runc,avagin/libcontainer,rootfs/runc,BrickXu/libcontainer,cloudfoundry-incubator/runc,albertoleal/runc,nkwilson/runc,haijunTan/runc,coolljt0725/runc,han-wang/runc,wcwxyz/runc,axsh/runc,ZJU-SEL/runc,mYmNeo/runc,abduld/runc,talwai/runc,rajasec/runc,haijunTan/runc,xiaochenshen/runc,rootfs/runc,w4ngyi/libcontainer,cyphar/runc,whosthatknocking/runc,chenchun/runc,crosbymichael/libcontainer,icecrime/libcontainer,liuwharton/runc,tangkun75/libcontainer,marcosnils/runc,ycaihua/libcontainer,ChengTiesheng/runc,wking/runc,cloudfoundry-incubator/runc,rhatdan/libcontainer,coolljt0725/runc,adrianreber/runc,rhatdan/runc,jhowardmsft/runc,hxfeng/runc,shenxiaochen/libcontainer,xiaochenshen/runc,shakamunyi/libcontainer,HardikDR/runc,avagin/runc,mikebrow/runc,cxxly/runc,estesp/libcontainer,ekuric/runc,wking/runc,LTD-Beget/libcontainer,mheon/libcontainer,BrickXu/libcontainer,avagin/runc,mheon/libcontainer,docker/libcontainer,w4ngyi/libcontainer,LTD-Beget/libcontainer,aidanhs/runc,keloyang/libcontainer,kimh/runc,sallyom/runc,docker/runc,kolyshkin/runc,mrunalp/runc,sunyuan3/runc,runcom/libcontainer,ZJU-SEL/libcontainer,rhatdan/runc,chenchun/runc,intfrr/runc,keloyang/libcontainer,meihuabo/runc,fabiokung/runc,opencontainers/runc,thaJeztah/libcontainer,unclejack/libcontainer,wcwxyz/runc,estesp/libcontainer,LK4D4/runc,WeiZhang555/runc,ddnbgroup/runc,maxamillion/runc,estesp/libcontainer,shenxiaochen/libcontainer,willmtemple/runc,meihuabo/runc,keloyang/libcontainer,gitido/runc,mikebrow/runc,kimh/runc,albertoleal/runc,hxfeng/runc,opencontainers/runc,Mashimiao/libcontainer,HardikDR/runc,marcosnils/runc,ChengTiesheng/runc,vbatts/runc,Microsoft/libcontainer,WeiZhang555/runc,docker/runc,LK4D4/runc,maxamillion/runc,estesp/runc,docker/libcontainer,rhatdan/runc,whuwxl/libcontainer,stefanberger/runc,docker/libcontainer,ZJU-SEL/libcontainer,liuwharton/runc,keloyang/libcontainer,boucher/runc,cxxly/runc,mheon/libcontainer,zenlinTechnofreak/runc,mheon/runc,axsh/runc,shishir-a412ed/runc,mapk0y/runc,navidshaikh/runc,jwuwork/runc,lizf-os/runc,adrianreber/runc,gitido/runc,LTD-Beget/libcontainer,dqminh/runc,justincormack/runc,subuser-security/runc,balajibr/runc,shakamunyi/libcontainer,booyaa/runc,ekuric/runc,talwai/runc,boucher/runc,ycaihua/libcontainer,jhowardmsft/runc,crosbymichael/runc,ZJU-SEL/libcontainer,hxfeng/runc,wangkirin/runc,xiaochenshen/runc,rajasec/runc,wking/runc,cloudfoundry-incubator/runc,laijs/runc,boucher/libcontainer,hqhq/libcontainer,booyaa/runc,InformatiQ/runc,SaiedKazemi/libcontainer-criu,ZJU-SEL/runc,w4ngyi/libcontainer,clnperez/runc,subuser-security/runc,Mashimiao/libcontainer,jwuwork/runc,HuKeping/runc,gitido/runc,mheon/runc,inatatsu/runc,nkwilson/runc,zhangyancoder/libcontainer,dieface/runc,kimh/runc,cyphar/runc,dqminh/libcontainer,chenchun/runc,hqhq/runc,rhatdan/runc,Microsoft/libcontainer,shenxiaochen/libcontainer,lizf-os/runc,ycaihua/runc,avagin/libcontainer,wangkirin/runc,meihuabo/runc,mheon/runc,zhangyancoder/libcontainer,adrianreber/runc,willmtemple/runc,mYmNeo/runc,boucher/runc,liuwharton/runc,BrickXu/libcontainer,intfrr/runc,inatatsu/runc,calavera/runc,aidanhs/runc,estesp/runc,mrunalp/libcontainer,nkwilson/runc,mapk0y/runc,booyaa/runc,ddnbgroup/runc,carlye566/runc,SaiedKazemi/libcontainer-criu,runcom/runc,InformatiQ/runc,laijs/runc,mrunalp/libcontainer,icecrime/libcontainer,mapk0y/runc,shakamunyi/libcontainer,unclejack/libcontainer,justincormack/runc,YujiOshima/runc,calavera/runc,rsampaio/runc,dqminh/libcontainer,runcom/runc,keloyang/runc,zenlinTechnofreak/runc,han-wang/runc,jhowardmsft/runc,jhjeong-kr/runc,intfrr/runc,maxamillion/runc,justincormack/runc,calavera/runc,inatatsu/runc,unclejack/libcontainer,abduld/runc,HuKeping/runc,crosbymichael/runc,balajibr/runc,boucher/libcontainer,WeiZhang555/runc,fabiokung/runc,dieface/runc,docker/runc,balajibr/runc,avagin/runc,mikebrow/runc,keloyang/runc,laijs/runc,axsh/runc,hqhq/libcontainer,marcosnils/runc,markllama/runc,zhangyancoder/libcontainer,vbatts/runc,cxxly/runc,Mashimiao/libcontainer,opencontainers/runc,InformatiQ/runc,rsampaio/runc,jhjeong-kr/runc,ycaihua/runc,rhatdan/libcontainer,fabiokung/runc