aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_panic.c')
-rw-r--r--src/microhttpd/mhd_panic.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/microhttpd/mhd_panic.c b/src/microhttpd/mhd_panic.c
index ae2db248..dfe1f6b5 100644
--- a/src/microhttpd/mhd_panic.c
+++ b/src/microhttpd/mhd_panic.c
@@ -73,16 +73,18 @@ mhd_panic_std (void *cls,
73 73
74 74
75/** 75/**
76 * Sets the global error handler to a different implementation. @a cb 76 * Sets the global error handler to a different implementation.
77 * will only be called in the case of typically fatal, serious
78 * internal consistency issues. These issues should only arise in the
79 * case of serious memory corruption or similar problems with the
80 * architecture. While @a cb is allowed to return and MHD will then
81 * try to continue, this is never safe.
82 * 77 *
83 * The default implementation that is used if no panic function is set 78 * @a cb will only be called in the case of typically fatal, serious internal
84 * simply prints an error message and calls `abort()`. Alternative 79 * consistency issues or serious system failures like failed lock of mutex.
85 * implementations might call `exit()` or other similar functions. 80 *
81 * These issues should only arise in the case of serious memory corruption or
82 * similar problems with the architecture, there is no safe way to continue
83 * even for closing of the application.
84 *
85 * The default implementation that is used if no panic function is set simply
86 * prints an error message and calls `abort()`.
87 * Alternative implementations might call `exit()` or other similar functions.
86 * 88 *
87 * @param cb new error handler or NULL to use default handler 89 * @param cb new error handler or NULL to use default handler
88 * @param cls passed to @a cb 90 * @param cls passed to @a cb