mirror of
https://github.com/YosysHQ/yosys
synced 2025-12-16 17:29:03 +00:00
Switch posix_spawn to posix_spawnp
This commit is contained in:
parent
2833a44503
commit
9d3d8bf502
1 changed files with 2 additions and 2 deletions
|
|
@ -252,8 +252,8 @@ std::optional<AbcProcess> spawn_abc(const char* abc_exe, DeferredLogs &logs) {
|
|||
|
||||
char arg1[] = "-s";
|
||||
char* argv[] = { strdup(abc_exe), arg1, nullptr };
|
||||
if (0 != posix_spawn(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
|
||||
logs.log_error("posix_spawn %s failed", abc_exe);
|
||||
if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
|
||||
logs.log_error("posix_spawnp %s failed", abc_exe);
|
||||
return std::nullopt;
|
||||
}
|
||||
free(argv[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue