[host] service: introduce fatal errors for ivshmem failures

Also for failure to parse command line. For these errors, restarting
with exponential backoff will not help: no amount of restarting the
service could possibly make the ivshmem device exist or larger, so
we shouldn't try.
This commit is contained in:
Quantum
2021-03-18 19:05:51 -04:00
committed by Geoffrey McRae
parent c12c6ea3c7
commit a089c4ea32
3 changed files with 18 additions and 12 deletions

View File

@@ -29,6 +29,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#define LG_HOST_EXIT_KILLED 0x30
// exit code for failed to start
#define LG_HOST_EXIT_FAILED 0x40
// exit code for failed to start, and no amount of restarting could help
#define LG_HOST_EXIT_FATAL 0x50
int app_main(int argc, char * argv[]);
bool app_init();