mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
virCommand: Extend debug message for handshake
Currently, we are logging only one side of pipes we create in virCommandRequireHandshake(); This is enough in cases where pipe2() returns two consecutive FDs. However, it is not guaranteed and it may return any FDs. Therefore, it's wise to log the other ends as well.
This commit is contained in:
parent
87dfdb0b92
commit
7454849ec5
@ -2443,8 +2443,10 @@ void virCommandRequireHandshake(virCommandPtr cmd)
|
||||
return;
|
||||
}
|
||||
|
||||
VIR_DEBUG("Transfer handshake wait=%d notify=%d",
|
||||
cmd->handshakeWait[1], cmd->handshakeNotify[0]);
|
||||
VIR_DEBUG("Transfer handshake wait=%d notify=%d, "
|
||||
"keep handshake wait=%d notify=%d",
|
||||
cmd->handshakeWait[1], cmd->handshakeNotify[0],
|
||||
cmd->handshakeWait[0], cmd->handshakeNotify[1]);
|
||||
virCommandTransferFD(cmd, cmd->handshakeWait[1]);
|
||||
virCommandTransferFD(cmd, cmd->handshakeNotify[0]);
|
||||
cmd->handshake = true;
|
||||
|
Loading…
Reference in New Issue
Block a user