On 09/04/2015 12:17, cluster lab wrote:
Hi,

I want to recognize qemu process termination,
After some test and try, developed this scenario:
"Receiving of  EOF from opened monitoring channel (return of zero from
read) would mean qemu process termination. "

(monitor means JSON monitor channel),
Is it a correct way?

Best regards.

You could also look at the actual OS level termination
of the process id of the relevant qemu process.

Unfortunately, POSIX is less helpful in waiting for
processes you did not start yourself than some non-POSIX
systems.  But maybe you are lucky and can get this from
some channel to the process that actually started qemu,
e.g. libvirt-bin or your own shell scripts.

Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded


Reply via email to