/bin/shutdown: fixed bug, was returning non zero even on shutdown
success. Spotted by mcandre, thanks!
This commit is contained in:
parent
1894e9b6a7
commit
91077c485a
|
@ -183,10 +183,11 @@ main(int argc, char **argv)
|
|||
BRoster roster;
|
||||
BRoster::Private rosterPrivate(roster);
|
||||
status_t error = rosterPrivate.ShutDown(gReboot, askUser, !async);
|
||||
if (error != B_OK)
|
||||
if (error != B_OK) {
|
||||
fprintf(stderr, "Shutdown failed: %s\n", strerror(error));
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue