CA-73047: Validate vncterm commandline args when checking whether it's running.
CA-73047: Validate vncterm commandline args when checking whether it's running.

In addition to calling kill -0 on the vncterm pid, we now also look up
its command line args in procfs and check that they contain both the
vncterm path and the xenstore console path for the relevant domid.

Signed-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>

sharady/xcp-networkd,djs55/xcp-rrdd,simonjbeaumont/xcp-rrdd,djs55/xcp-rrdd,koushikcgit/xcp-networkd,johnelse/xcp-rrdd,koushikcgit/xcp-networkd,simonjbeaumont/xcp-rrdd,djs55/xcp-networkd,sharady/xcp-networkd,johnelse/xcp-rrdd,djs55/squeezed,koushikcgit/xcp-rrdd,koushikcgit/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/xcp-networkd,robhoes/squeezed