mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 04:31:44 +00:00
fix for solaris
This commit is contained in:
@@ -2708,12 +2708,12 @@ char *uwsgi_get_binary_path(char *argvzero) {
|
||||
#elif defined(__sun__)
|
||||
char *buf = (char *)getexecname();
|
||||
if (buf) {
|
||||
uwsgi_log("HELLO: %s\n", buf);
|
||||
// return only absolute path
|
||||
if (buf[0] == '/') {
|
||||
return buf;
|
||||
}
|
||||
char *newbuf = realpath(buf, NULL);
|
||||
free(buf);
|
||||
if (newbuf) {
|
||||
return newbuf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user