util: add virCommandPassListenFDs() function

That sets a new flag, but that flag does mean the child will get
LISTEN_FDS and LISTEN_PID environment variables properly set and
passed FDs reordered so that it corresponds with LISTEN_FDS (they must
start right after STDERR_FILENO).

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander
2014-08-22 09:12:14 +02:00
parent 241ac07124
commit 62f263a73e
5 changed files with 166 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
FD:0
FD:1
FD:2
FD:3
FD:4
DAEMON:yes
CWD:/