mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
fix race in module api test for fork
in some cases we were trying to kill the fork before it got created
This commit is contained in:
@ -42,7 +42,7 @@ int fork_create(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
|
||||
|
||||
/* child */
|
||||
RedisModule_Log(ctx, "notice", "fork child started");
|
||||
usleep(200000);
|
||||
usleep(500000);
|
||||
RedisModule_Log(ctx, "notice", "fork child exiting");
|
||||
RedisModule_ExitFromChild(code_to_exit_with);
|
||||
/* unreachable */
|
||||
|
Reference in New Issue
Block a user