X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhang.c;h=578ac78d45306f949d9ee237c27b17e164c5d317;hb=1099b2abef35c3c887f6afac1a8ef18c7924d5d2;hp=c5a78694be6f8217c45cb8cef8d2d081b2e433f0;hpb=aa0ffe8eb919c85997884d4d3d44a81f92a8ab66;p=oweals%2Fu-boot.git diff --git a/lib/hang.c b/lib/hang.c index c5a78694be..578ac78d45 100644 --- a/lib/hang.c +++ b/lib/hang.c @@ -9,6 +9,8 @@ #include #include +#include +#include /** * hang - stop processing by staying in an endless loop @@ -26,6 +28,8 @@ void hang(void) puts("### ERROR ### Please RESET the board ###\n"); #endif bootstage_error(BOOTSTAGE_ID_NEED_RESET); + if (IS_ENABLED(CONFIG_SANDBOX)) + os_exit(1); for (;;) ; }