3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-15 11:45:41 +00:00

Update abc to fix bug

This commit is contained in:
Akash Levy 2026-03-01 21:43:26 -08:00
parent b19948b03a
commit b03f73653f

View file

@ -188,8 +188,11 @@ struct AbcProcess
~AbcProcess() {
if (pid == 0)
return;
if (to_child_pipe >= 0)
if (to_child_pipe >= 0) {
static const char quit_cmd[] = "quit\n";
if (write(to_child_pipe, quit_cmd, sizeof(quit_cmd) - 1)) {}
close(to_child_pipe);
}
int status;
int ret = waitpid(pid, &status, 0);
if (ret != pid) {