]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Make commandtest more robust wrt its execution environment
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 24 Feb 2011 12:12:27 +0000 (12:12 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Feb 2011 11:02:08 +0000 (11:02 +0000)
commitf0e9dfeca967d05f23409c838619d9357d4f7d7f
treec83021380428f225dc79b3cab8af7d6498995288
parent0905d1ee950a37a8764a0f8dfc31be80b2b564c3
Make commandtest more robust wrt its execution environment

When executed from cron, commandtest would fail to correctly
identify daemon processes. Set session ID and process group
IDs at startup to ensure we have a consistent environment to
run in.

* tests/commandtest.c: Call setsid() and setpgid()
tests/commandtest.c