MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_SendChildHeartbeat

Function RM_SendChildHeartbeat

app/redis-6.2.6/src/module.c:7882–7884  ·  view source on GitHub ↗

The module is advised to call this function from the fork child once in a while, * so that it can report progress and COW memory to the parent which will be * reported in INFO. * The `progress` argument should between 0 and 1, or -1 when not available. */

Source from the content-addressed store, hash-verified

7880 * reported in INFO.
7881 * The `progress` argument should between 0 and 1, or -1 when not available. */
7882void RM_SendChildHeartbeat(double progress) {
7883 sendChildInfoGeneric(CHILD_INFO_TYPE_CURRENT_INFO, 0, progress, "Module fork");
7884}
7885
7886/* Call from the child process when you want to terminate it.
7887 * retcode will be provided to the done handler executed on the parent process.

Callers

nothing calls this directly

Calls 1

sendChildInfoGenericFunction · 0.85

Tested by

no test coverage detected