Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crush: CrushTester::test_with_crushtool: use SubProcess to spawn crus…
…htool Fixes and improvements this brings: * Use _exit(2) instead of exit(2) if exec(3) failed (does not call the atexit functions, removing asock and pid files in the child process). * Close all parent descriptors before exec(3). * Log crushtool stderr. * SubProcess is covered by unit tests. Signed-off-by: Mykola Golub <mgolub@mirantis.com>
- Loading branch information
Mykola Golub
committed
Mar 27, 2015
1 parent
5388521
commit ec02441
Showing
4 changed files
with
28 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters