diff options
author | Denis Kozadaev <[email protected]> | 2020-05-23 18:01:19 +0300 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2020-05-26 08:36:59 +0000 |
commit | 44e4d3ce6b80000b7627baee2847ab5e1f7f7d99 (patch) | |
tree | a56725bef8a13cf839aefd4253cffdd8887873bc /kdesktop | |
parent | 953eb33118f00b164d272876802aa8883dd5e8e7 (diff) | |
download | tdebase-44e4d3ce6b80000b7627baee2847ab5e1f7f7d99.tar.gz tdebase-44e4d3ce6b80000b7627baee2847ab5e1f7f7d99.zip |
DilOS: use illumos specific /proc path for an executable file
Signed-off-by: Denis Kozadaev <[email protected]>
Diffstat (limited to 'kdesktop')
-rw-r--r-- | kdesktop/lock/main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index 114ce7ef0..1b9292a59 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -338,7 +338,11 @@ int main( int argc, char **argv ) int len; char procpath[PATH_MAX]; char fullpath[PATH_MAX]; +#if defined(__dilos__) + snprintf(procpath, sizeof(procpath), "/proc/%d/path/a.out", pid); +#else /* !__dilos__ */ snprintf(procpath, sizeof(procpath), "/proc/%d/exe", pid); +#endif /* __dilos__ */ len = readlink( procpath, fullpath, sizeof(fullpath) ); if (len >= 0) { fullpath[len] = 0; |