diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index 7a5e849d4..9e8e3f3a2 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -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) {