MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ha_deadline_exit

Function ha_deadline_exit

src/cli/hook_augment.c:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96static size_t g_ha_crumb_len = 0;
97
98static void ha_deadline_exit(int sig) {
99 (void)sig;
100 if (g_ha_crumb_fd >= 0 && g_ha_crumb_len > 0) {
101 ssize_t w = write(g_ha_crumb_fd, g_ha_crumb_msg, g_ha_crumb_len);
102 (void)w;
103 }
104 _exit(0);
105}
106
107/* Whether snprintf wrote the whole string into a buffer of `cap` bytes. */
108static bool ha_fits(int written, size_t cap) {

Callers

nothing calls this directly

Calls 2

_exitFunction · 0.85
writeFunction · 0.50

Tested by

no test coverage detected