RunCmd: Expose "postfork" callback
authorMichael Hanselmann <hansmi@google.com>
Fri, 9 Nov 2012 15:12:22 +0000 (16:12 +0100)
committerMichael Hanselmann <hansmi@google.com>
Mon, 12 Nov 2012 16:51:23 +0000 (17:51 +0100)
commit09b727836fce66a69dd517c0d78334101a896c3b
treed499414ea600011df428ed0574494f111d94c2c9
parent551a29dfe3b105ac264d74e173da0008cbbfa86b
RunCmd: Expose "postfork" callback

The “_postfork_fn” parameter was only used for tests until now. To
implement a good locking scheme, remote commands must also make use of
this callback to release a lock when the command was successfully
started (but did not yet finish).

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/utils/process.py
test/ganeti.utils.process_unittest.py