MINOR: tools: add get_exec_path implementation for solaris based systems.

We can use getexecname() which fetches AT_SUN_EXECNAME from the auxiliary
vectors.
This commit is contained in:
David Carlier 2022-05-14 17:15:49 +01:00 committed by Willy Tarreau
parent 135c1ec139
commit 7198c700bc

View File

@ -4821,6 +4821,8 @@ const char *get_exec_path()
break;
}
}
#elif defined(__sun)
ret = getexecname();
#endif
return ret;
}