[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 authored and Geoffrey McRae committed 2021-03-22 08:54:58 +11:00
1 parent c12c6ea3c7
commit a089c4ea32
3 files changed
+18 -12

No files matched your search

+2
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();