Commit fcaef0a
committed
[demo.c] Fix silent app failures due to zero exit code even on failures
By convention, an exit status of 0 signifies successful completion, while any
non-zero value typically indicates an error or a specific condition. In shell
scripting, the exit status of the last executed command can be accessed using
the special variable $?.
Signed-off-by: Imran Desai <[email protected]>1 parent c639af2 commit fcaef0a
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
| 896 | + | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
916 | | - | |
| 916 | + | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| 925 | + | |
925 | 926 | | |
926 | 927 | | |
927 | 928 | | |
928 | 929 | | |
929 | 930 | | |
930 | 931 | | |
931 | 932 | | |
932 | | - | |
| 933 | + | |
933 | 934 | | |
934 | 935 | | |
935 | 936 | | |
| 937 | + | |
936 | 938 | | |
937 | 939 | | |
938 | 940 | | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
942 | 944 | | |
943 | | - | |
| 945 | + | |
944 | 946 | | |
945 | 947 | | |
946 | 948 | | |
| 949 | + | |
947 | 950 | | |
948 | 951 | | |
949 | 952 | | |
950 | 953 | | |
951 | 954 | | |
952 | 955 | | |
953 | 956 | | |
954 | | - | |
| 957 | + | |
955 | 958 | | |
956 | 959 | | |
957 | 960 | | |
| 961 | + | |
958 | 962 | | |
959 | 963 | | |
960 | 964 | | |
| |||
0 commit comments