summaryrefslogtreecommitdiffstats
path: root/src/hci/commands
diff options
context:
space:
mode:
authorMichael Brown2013-11-01 02:56:33 +0100
committerMichael Brown2013-11-01 18:00:16 +0100
commit92c56e129bae6dd054c89a6077009e25da5b7e29 (patch)
tree3485ab2d93a8e2f184d1859a3a9aa76b27ffc40b /src/hci/commands
parent[monojob] Report ongoing job status as overall return status on timeout (diff)
downloadipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.tar.gz
ipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.tar.xz
ipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.zip
[cmdline] Rewrite "sync" command to use monojob_wait()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/commands')
-rw-r--r--src/hci/commands/sync_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hci/commands/sync_cmd.c b/src/hci/commands/sync_cmd.c
index ee932939..3c9ef2a4 100644
--- a/src/hci/commands/sync_cmd.c
+++ b/src/hci/commands/sync_cmd.c
@@ -24,7 +24,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
-#include <ipxe/pending.h>
+#include <usr/sync.h>
/** @file
*
@@ -65,7 +65,7 @@ static int sync_exec ( int argc, char **argv ) {
return rc;
/* Wait for pending operations to complete */
- if ( ( rc = pending_wait ( opts.timeout ) ) != 0 ) {
+ if ( ( rc = sync ( opts.timeout ) ) != 0 ) {
printf ( "Operations did not complete: %s\n", strerror ( rc ) );
return rc;
}