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)
|
if (error != B_OK)
|
||||||
printf("Cancelling modifications failed: %s\n", strerror(error));
|
printf("Cancelling modifications failed: %s\n", strerror(error));
|
||||||
}
|
}
|
||||||
*/ // cancel modifications
|
*/ // commit modifications
|
||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
error = device.CommitModifications();
|
error = device.CommitModifications();
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
printf("Committing modifications failed: %s\n", strerror(error));
|
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);
|
device.VisitEachDescendant(&visitor);
|
||||||
|
|
||||||
// for userland testing only
|
// for userland testing only
|
||||||
|
|||||||
Reference in New Issue
Block a user