summaryrefslogtreecommitdiffstats
path: root/twin/compton-tde
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2023-05-18 21:41:25 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-05-23 10:14:51 +0900
commitd984205f2e2e53941bce2efb99252feb6a4c046e (patch)
tree71092a76f19990d9072233a2c02e687ee518da64 /twin/compton-tde
parentf3f71a018f383fe1cdf2d7e402c95325ba81c6a3 (diff)
downloadtdebase-d984205f.tar.gz
tdebase-d984205f.zip
SunOS specific patches
Signed-off-by: Denis Kozadaev <denis@dilos.org> (cherry picked from commit 4d58a4ea8daf1a3cb91b7d8c6e574dd6f5bdb685)
Diffstat (limited to 'twin/compton-tde')
-rw-r--r--twin/compton-tde/compton.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/twin/compton-tde/compton.c b/twin/compton-tde/compton.c
index 603402fc6..2e76cb6b3 100644
--- a/twin/compton-tde/compton.c
+++ b/twin/compton-tde/compton.c
@@ -161,7 +161,11 @@ void delete_pid_file()
printf("compton-tde lost connection to X server, restarting...\n"); fflush(stdout);
sleep(1);
char me[2048];
+#ifdef Q_OS_SOLARIS
+ int chars = readlink("/proc/self/path/a.out", me, sizeof(me));
+#else /* default */
int chars = readlink("/proc/self/exe", me, sizeof(me));
+#endif /* self exe */
me[chars] = 0;
me[2047] = 0;
execl(me, basename(me), (char*)NULL);