i3bar: Group child processes for signalling
i3bar: Group child processes for signalling

Set the process group id of the child process by calling `setpgid` after
forking and before calling `exec`.

The process group ID will be set to the process ID of the forked
process. Processes spawned by this child process will also have this
group ID.

Send signals to the process group with `killpg`. This will send the
signal to all of the process group.

fixes #1128

ccryx/i3,ccryx/i3,MForster/i3,smrt28/i3,shdown/i3,Zopieux/i3,simonnagl/i3,sa1/i3,strake/i3,sa1/i3,tcreech/i3,avrelaun/i3,Airblader/i3-original,gnomus/i3-wm-gap,renlinx007/i3wm,i3/i3,strake/i3,jubalh/i3,avrelaun/i3,Zopieux/i3,drbig/i3,FauxFaux/i3,sideffect0/i3wm,saksham0808/i3,stapelberg/i3,strake/i3,EvilPudding/i3,FauxFaux/i3,yin/i3,FauxFaux/i3,strake/i3,EvilPudding/i3,avrelaun/i3,mh21/i3,mh21/i3,Chr1stoph/i3,renlinx007/i3wm,Airblader/i3-original,mariusmuja/i3wm,tcreech/i3,FauxFaux/i3,yin/i3,jubalh/i3,Airblader/i3-original,isharp/i3,Azkae/i3,Airblader/i3,gnomus/i3-wm-gap,shdown/i3,Matmusia/i3,sa1/i3,shdown/i3,pronobis/i3,dg-ratiodata/i3,pronobis/i3,i3/i3,saksham0808/i3,stapelberg/i3,sideffect0/i3wm,Matmusia/i3,acrisci/i3,cornerman/i3,acrisci/i3,pablospe/i3,pronobis/i3,gnomus/i3-wm-gap,renlinx007/i3wm,mariusmuja/i3wm,pablospe/i3,Matmusia/i3,Kaligule/i3,pablospe/i3,simonnagl/i3,acrisci/i3,tcreech/i3,Kaligule/i3,dg-ratiodata/i3,smrt28/i3,shdown/i3,pablospe/i3,Chr1stoph/i3,Airblader/i3,Airblader/i3,pronobis/i3,Azkae/i3,acrisci/i3,sa1/i3,Airblader/i3-original,Airblader/i3-original,sideffect0/i3wm,netzverweigerer/i3,stapelberg/i3,mariusmuja/i3wm,Matmusia/i3,EvilPudding/i3,drbig/i3,Airblader/i3,EvilPudding/i3,Chr1stoph/i3,drbig/i3,jubalh/i3,mh21/i3,netzverweigerer/i3,i3/i3,cornerman/i3,avrelaun/i3,mariusmuja/i3wm,tcreech/i3,saksham0808/i3,ccryx/i3,sideffect0/i3wm,i3/i3,acrisci/i3,dg-ratiodata/i3,yin/i3,Azkae/i3,strake/i3,netzverweigerer/i3,smrt28/i3,Kaligule/i3,Chr1stoph/i3,MForster/i3,Zopieux/i3,MForster/i3,cornerman/i3,Azkae/i3,cornerman/i3,dg-ratiodata/i3,isharp/i3,isharp/i3,netzverweigerer/i3,yin/i3,jubalh/i3,smrt28/i3,gnomus/i3-wm-gap,Zopieux/i3,mh21/i3,Kaligule/i3,ccryx/i3,MForster/i3,drbig/i3,saksham0808/i3,stapelberg/i3,renlinx007/i3wm,simonnagl/i3,isharp/i3,simonnagl/i3