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:
Ingo Weinhold
2003-09-28 22:07:57 +00:00
parent 11ef678c43
commit 3d2fa2ae20
@@ -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