1
0
mirror of synced 2026-04-16 01:51:02 +00:00

Merge pull request #5568 from rocallahan/abc-spawn-errno

Print `errno` to help diagnose failure to spawn ABC
This commit is contained in:
Miodrag Milanović
2025-12-23 08:09:14 +01:00
committed by GitHub

View File

@@ -253,7 +253,7 @@ std::optional<AbcProcess> spawn_abc(const char* abc_exe, DeferredLogs &logs) {
char arg1[] = "-s";
char* argv[] = { strdup(abc_exe), arg1, nullptr };
if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
logs.log_error("posix_spawnp %s failed", abc_exe);
logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerrorname_np(errno));
return std::nullopt;
}
free(argv[0]);