diff options
| author | Denis Kozadaev <denis@dilos.org> | 2023-05-18 21:41:25 +0300 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-23 10:14:51 +0900 |
| commit | d984205f2e2e53941bce2efb99252feb6a4c046e (patch) | |
| tree | 71092a76f19990d9072233a2c02e687ee518da64 /twin/compton-tde | |
| parent | f3f71a018f383fe1cdf2d7e402c95325ba81c6a3 (diff) | |
| download | tdebase-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.c | 4 |
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); |
