conmon: Handle runc exiting before passing terminal fd
conmon: Handle runc exiting before passing terminal fd

We don't want to block on accepting the terminal fd, because then
we can't detect if runc died before calling out to pass the terminal
fd. To handle this we spin the glib mainloop listening to both the
terminal accept fd and a child pid watch.

Signed-off-by: Alexander Larsson <8c32c4b573bb86be9076a894bc9e0dfe2b512e8a@redhat.com>

kubernetes-incubator/cri-o,14rcole/cri-o,mikebrow/cri-o,rhatdan/cri-o,14rcole/cri-o,umohnani8/cri-o,vbatts/cri-o,vbatts/cri-o,apilloud/cri-o,jwhonce/ocid,mikebrow/cri-o,mheon/cri-o,14rcole/cri-o,vbatts/cri-o,14rcole/cri-o,rhatdan/cri-o,mheon/cri-o,umohnani8/cri-o,mheon/cri-o,umohnani8/cri-o,nalind/cri-o,mikebrow/cri-o,umohnani8/cri-o,kubernetes-incubator/ocid,rhatdan/cri-o,kubernetes-incubator/cri-o,nalind/cri-o,jwhonce/ocid,kubernetes-incubator/cri-o,jwhonce/ocid,mheon/cri-o,vbatts/cri-o,rhatdan/cri-o,kubernetes-incubator/cri-o,mikebrow/cri-o,apilloud/cri-o,nalind/cri-o,apilloud/cri-o,kubernetes-incubator/ocid,kubernetes-incubator/ocid