diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:57:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:57:24 +0100 |
commit | ae66be67da3b3f4d90fc4a6f8499183d715238bf (patch) | |
tree | 127016e45535ee080b50a7c1e578ec9694038b2a /src/libserver/rspamd_control.c | |
parent | 2f0c6e0f26c6d96442c24e54331c2939ca50127c (diff) | |
download | rspamd-ae66be67da3b3f4d90fc4a6f8499183d715238bf.tar.gz rspamd-ae66be67da3b3f4d90fc4a6f8499183d715238bf.zip |
[Minor] Further fixes for subprocess spawning logic
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r-- | src/libserver/rspamd_control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index 14a258828..ab317bde2 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -751,7 +751,7 @@ rspamd_control_handle_on_fork (struct rspamd_srv_command *cmd, if (cmd->cmd.on_fork.state == child_dead) { /* We need to remove stale worker */ child = g_hash_table_lookup (srv->workers, - GSIZE_TO_POINTER (cmd->cmd.on_fork.ppid)); + GSIZE_TO_POINTER (cmd->cmd.on_fork.cpid)); if (child == NULL) { msg_err ("cannot find child for a forked process %P (%P parent)", @@ -762,7 +762,7 @@ rspamd_control_handle_on_fork (struct rspamd_srv_command *cmd, REF_RELEASE (child->cf); g_hash_table_remove (srv->workers, - GSIZE_TO_POINTER (cmd->cmd.on_fork.ppid)); + GSIZE_TO_POINTER (cmd->cmd.on_fork.cpid)); g_free (child); } else { |