lbmk/util/spkmodem_recv
Leah Rowe 212ce3a8ac util/spkmodem-recv: warn on unhandled exit error
my style of C programming is this: always return errno
upon exit from the program, or from a thread.

handle errno in the calling/forking function.

returning errno at the end of main has this intention:
if an unhandled error occured, the program exits with
non-zero status.

a correctly written program should *never* return non-zero
at the end of main, and if it does, this indicates a bug
in the code (per my code style / philosophy).

so, warn the user with a message if this occurs. the
intention is that this message should never be printed.

do not use assert() for this. i don't believe in that.
such a test should always be present, for everyone.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2023-06-04 15:33:23 +01:00
..
.gitignore util/spkmodem_recv: Import from coreboot 2023-05-16 23:09:42 +01:00
Makefile util/spkmodem_recv: Add clean to the Makefile 2023-05-16 23:11:35 +01:00
description.md util/spkmodem_recv: Import from coreboot 2023-05-16 23:09:42 +01:00
spkmodem-recv.c util/spkmodem-recv: warn on unhandled exit error 2023-06-04 15:33:23 +01:00