summaryrefslogtreecommitdiff
path: root/user/xautolock/processwait.patch
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-10-05 03:44:17 -0700
committerDan Theisen <djt@hxx.in>2018-10-05 03:44:17 -0700
commit88769bde43f35d5aa3b9443e63937d0e0e347101 (patch)
tree9fced54bc8c6f8fe9733f50492b5e7fbe9d71c87 /user/xautolock/processwait.patch
parentc99a79ba9c222be7289efc6b5233e8fe170d9b17 (diff)
downloadpackages-88769bde43f35d5aa3b9443e63937d0e0e347101.tar.gz
packages-88769bde43f35d5aa3b9443e63937d0e0e347101.tar.bz2
packages-88769bde43f35d5aa3b9443e63937d0e0e347101.tar.xz
packages-88769bde43f35d5aa3b9443e63937d0e0e347101.zip
user/xautolock: new package
Diffstat (limited to 'user/xautolock/processwait.patch')
-rw-r--r--user/xautolock/processwait.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/xautolock/processwait.patch b/user/xautolock/processwait.patch
new file mode 100644
index 000000000..cb49f8d88
--- /dev/null
+++ b/user/xautolock/processwait.patch
@@ -0,0 +1,33 @@
+--- xautolock/src/engine.c.orig 2014-08-28 12:50:56.086307943 +0000
++++ xautolock/src/engine.c 2014-08-28 12:50:59.496333650 +0000
+@@ -209,24 +209,24 @@ evaluateTriggers (Display* d)
+ {
+ #else /* VMS */
+ if (lockerPid)
+ {
+-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
++#if (!defined (UTEKV) && !defined (SYSV) && !defined (SVR4)) && defined (__GLIBC__)
+ union wait status; /* childs process status */
+-#else /* !UTEKV && !SYSV && !SVR4 */
++#else /* (!UTEKV && !SYSV && !SVR4) && __GLIBC__ */
+ int status = 0; /* childs process status */
+-#endif /* !UTEKV && !SYSV && !SVR4 */
++#endif /* (!UTEKV && !SYSV && !SVR4) && __GLIBC__ */
+
+ if (unlockNow && !disabled)
+ {
+ (void) kill (lockerPid, SIGTERM);
+ }
+
+-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
++#if (!defined (UTEKV) && !defined (SYSV) && !defined (SVR4)) && defined (__GLIBC__)
+ if (wait3 (&status, WNOHANG, 0))
+-#else /* !UTEKV && !SYSV && !SVR4 */
++#else /* (!UTEKV && !SYSV && !SVR4) && __GLIBC__ */
+ if (waitpid (-1, &status, WNOHANG))
+-#endif /* !UTEKV && !SYSV && !SVR4 */
++#endif /* (!UTEKV && !SYSV && !SVR4) && __GLIBC__ */
+ {
+ /*
+ * If the locker exited normally, we disable any pending kill
+ * trigger. Otherwise, we assume that it either has crashed or