mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Fixed process kill waitpid cleanup issues.
This commit is contained in:
@@ -40,7 +40,11 @@ namespace sc
|
||||
|
||||
// Write the inputs into the contract process.
|
||||
if (feed_inputs(ctx) != 0)
|
||||
{
|
||||
util::kill_process(pid, true);
|
||||
ctx.contract_pid = 0;
|
||||
goto failure;
|
||||
}
|
||||
|
||||
// Wait for child process (contract process) to complete execution.
|
||||
const int presult = await_process_execution(ctx.contract_pid);
|
||||
|
||||
Reference in New Issue
Block a user