summaryrefslogtreecommitdiffstats
path: root/src/usr/dhcpmgmt.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-01 02:55:13 +0100
committerMichael Brown2013-11-01 17:26:02 +0100
commitd1be9f4acc9d4367fb6dc793495f0cc819b5a514 (patch)
tree6865cbc8e41c0b052aa704f0a41b7eaecd0f2f0a /src/usr/dhcpmgmt.c
parent[job] Allow job_progress() to return an ongoing job status code, if known (diff)
downloadipxe-d1be9f4acc9d4367fb6dc793495f0cc819b5a514.tar.gz
ipxe-d1be9f4acc9d4367fb6dc793495f0cc819b5a514.tar.xz
ipxe-d1be9f4acc9d4367fb6dc793495f0cc819b5a514.zip
[monojob] Add timeout parameter to monojob_wait()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr/dhcpmgmt.c')
-rw-r--r--src/usr/dhcpmgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c
index 10d8ecfa..7b8e5370 100644
--- a/src/usr/dhcpmgmt.c
+++ b/src/usr/dhcpmgmt.c
@@ -52,7 +52,7 @@ int dhcp ( struct net_device *netdev ) {
printf ( "DHCP (%s %s)", netdev->name,
netdev->ll_protocol->ntoa ( netdev->ll_addr ) );
if ( ( rc = start_dhcp ( &monojob, netdev ) ) == 0 )
- rc = monojob_wait ( "" );
+ rc = monojob_wait ( "", 0 );
return rc;
}
@@ -63,7 +63,7 @@ int pxebs ( struct net_device *netdev, unsigned int pxe_type ) {
/* Perform PXE Boot Server Discovery */
printf ( "PXEBS (%s type %d)", netdev->name, pxe_type );
if ( ( rc = start_pxebs ( &monojob, netdev, pxe_type ) ) == 0 )
- rc = monojob_wait ( "" );
+ rc = monojob_wait ( "", 0 );
return rc;
}