mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
check dhclient exit status
This commit is contained in:
parent
f8caeecd49
commit
bcd7ecfa9c
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,13 @@ int call_dhcp(const char *network_interface)
|
|||
return VANILLA_ERROR;
|
||||
}
|
||||
|
||||
int exit_status = WEXITSTATUS(status);
|
||||
if (exit_status != 0) {
|
||||
// Something went wrong
|
||||
print_info("DHCLIENT DID NOT EXIT NORMALLY: %i", exit_status);
|
||||
return VANILLA_ERROR;
|
||||
}
|
||||
|
||||
return VANILLA_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue