Wait until jobs are done after committing the changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4851 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -626,13 +626,15 @@ main()
|
||||
if (error != B_OK)
|
||||
printf("Cancelling modifications failed: %s\n", strerror(error));
|
||||
}
|
||||
*/ // cancel modifications
|
||||
*/ // commit modifications
|
||||
if (error == B_OK) {
|
||||
error = device.CommitModifications();
|
||||
if (error != B_OK)
|
||||
printf("Committing modifications failed: %s\n", strerror(error));
|
||||
}
|
||||
printf("\nDevice after cancelling the changes:\n");
|
||||
wait_for_jobs();
|
||||
// printf("\nDevice after cancelling the changes:\n");
|
||||
printf("\nDevice after committing the changes:\n");
|
||||
device.VisitEachDescendant(&visitor);
|
||||
|
||||
// for userland testing only
|
||||
|
||||
Reference in New Issue
Block a user