diff options
author | Oran Agra <oran@redislabs.com> | 2019-07-17 08:51:02 +0300 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2019-07-17 16:40:24 +0300 |
commit | 56258c6b7d26b6ee44bf31b18e9aad95d0a0142a (patch) | |
tree | 421767e1db948bba5bd9bff86562a5afe57f589e /src/childinfo.c | |
parent | 4b2579a0644e469edb80e7c979f44ec7f2724368 (diff) | |
download | redis-56258c6b7d26b6ee44bf31b18e9aad95d0a0142a.tar.gz |
Module API for Forking
* create module API for forking child processes.
* refactor duplicate code around creating and tracking forks by AOF and RDB.
* child processes listen to SIGUSR1 and dies exitFromChild in order to
eliminate a valgrind warning of unhandled signal.
* note that BGSAVE error reply has changed.
valgrind error is:
Process terminating with default action of signal 10 (SIGUSR1)
Diffstat (limited to 'src/childinfo.c')
-rw-r--r-- | src/childinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/childinfo.c b/src/childinfo.c index 719025e8c..fa0600552 100644 --- a/src/childinfo.c +++ b/src/childinfo.c @@ -80,6 +80,8 @@ void receiveChildInfo(void) { server.stat_rdb_cow_bytes = server.child_info_data.cow_size; } else if (server.child_info_data.process_type == CHILD_INFO_TYPE_AOF) { server.stat_aof_cow_bytes = server.child_info_data.cow_size; + } else if (server.child_info_data.process_type == CHILD_INFO_TYPE_MODULE) { + server.stat_module_cow_bytes = server.child_info_data.cow_size; } } } |