lxc: line buffered output for lxc-monitor
lxc: line buffered output for lxc-monitor

A typical usage is to start lxc-monitor in popen() and parse the ouput.
Unfortunately, glibc defaults to block buffering for pipes and you may
have to wait several lines before anything is written to stdout... this
prevent the use of lxc-monitor to implement automatons. Let's go line
buffered !

Signed-off-by: Greg Kurz <21a0ac3a0184cbb5f322585bd41886b0e67aa0d7@fr.ibm.com>
Signed-off-by: Daniel Lezcano <3211518dd4d87cb3f7ee12cb52e14b7fb2bc0446@fr.ibm.com>

fwilson42/lxc,hfuCN/lxc,sapun/lxc,rowhit/lxc,akshaykarle/lxc,lisongmin/lxc,potatosalad/lxc,ojkastl/lxc_Patches,bostjan/lxc,ysbnim/lxc,abstrakraft/lxc-android-lxc,federicobriata/lxc,major/lxc,ksperis/lxc,christiaan/lxc,regit/lxc,tych0/lxc,Distrotech/lxc,thmo/lxc,aeris/lxc,QingweiPeterLan/cs188-lxc,Pelagicore/lxc,hkjolhede/lxc,GreatFruitOmsk/lxc,efiop/lxc,yubo/lxc,codebauss/lxc,akshaykarle/lxc,bostjan/lxc,Ponce/lxc,ysbnim/lxc,ojkastl/lxc_Patches,christiaan/lxc,raspberrypython/lxc,JohnPeacockMessageSystems/lxc,raspberrypython/lxc,jirislaby/lxc,bostjan/lxc,caglar10ur/lxc,ioops/lxc,LynxChaus/lxc,lisongmin/lxc,DarknessBeforeDawn/lxc,hallyn/lxc,fwilson42/lxc,szaszg/lxc,lazy404/lxc,ecarrara/lxc,ss1h2a3tw/lxc,raspberrypython/lxc,hallyn/lxc,ss1h2a3tw/lxc,major/lxc,sapun/lxc,abstrakraft/lxc-android-lxc,yubo/lxc,bmoar/lxc,thmo/lxc,hkjolhede/lxc,terceiro/lxc,coconutpilot/lxc-gentoo-new,fwilson42/lxc,christiaan/lxc,virajs/lxc,Distrotech/lxc,armcc/lxc,GreatFruitOmsk/lxc,JohnPeacockMessageSystems/lxc,codebauss/lxc,caglar10ur/lxc,ostap/lxc,hfuCN/lxc,Ponce/lxc,rldleblanc/lxc,smoser/lxc,ecarrara/lxc,coconutpilot/lxc-gentoo-new,lisongmin/lxc,regit/lxc,lazy404/lxc,weizhenwei/lxc,regit/lxc,terceiro/lxc,ostap/lxc,cjwatson/lxc,QingweiPeterLan/cs188-lxc,tych0/lxc,federicobriata/lxc,smoser/lxc,Distrotech/lxc,ecarrara/lxc,bmoar/lxc,terceiro/lxc,aeris/lxc,akshaykarle/lxc,armcc/lxc,weizhenwei/lxc,abstrakraft/lxc-android-lxc,bmoar/lxc,ojkastl/lxc_Patches,smoser/lxc,hkjolhede/lxc,yubo/lxc,rowhit/lxc,cjwatson/lxc,aeris/lxc,Pelagicore/lxc,tych0/lxc,szaszg/lxc,JohnPeacockMessageSystems/lxc,LynxChaus/lxc,virajs/lxc,codebauss/lxc,ioops/lxc,jirislaby/lxc,ksperis/lxc,efiop/lxc,szaszg/lxc,hfuCN/lxc,glensc/lxc,rldleblanc/lxc,QingweiPeterLan/cs188-lxc,efiop/lxc,DarknessBeforeDawn/lxc,armcc/lxc,rldleblanc/lxc,lazy404/lxc,federicobriata/lxc,ksperis/lxc,virajs/lxc,rowhit/lxc,glensc/lxc,glensc/lxc,weizhenwei/lxc,smoser/lxc,abstrakraft/lxc-android-lxc,ojkastl/lxc_Patches,potatosalad/lxc,major/lxc,ysbnim/lxc,caglar10ur/lxc,GreatFruitOmsk/lxc,jirislaby/lxc,LynxChaus/lxc,hallyn/lxc,cjwatson/lxc,Ponce/lxc,thmo/lxc,ss1h2a3tw/lxc,ioops/lxc,Pelagicore/lxc,sapun/lxc,DarknessBeforeDawn/lxc