aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xautolock/processwait.patch
diff options
context:
space:
mode:
authorJohannes Matheis <jomat+alpinebuild@jmt.gr>2014-08-28 15:02:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-20 12:35:04 +0000
commit9b94e270d15694252b5335fad45d47d1b1dceb71 (patch)
tree6c284745285a7bdf57bb1f86e1c9b90ba4071671 /testing/xautolock/processwait.patch
parentd9504f0a8ea97d3c9594eb9af36cf79ac2164fb7 (diff)
downloadaports-9b94e270d15694252b5335fad45d47d1b1dceb71.tar.bz2
aports-9b94e270d15694252b5335fad45d47d1b1dceb71.tar.xz
testing/xautolock: new aport
ftp://ibiblio.org/pub/Linux/X11/screensavers/ An automatic X screen-locker/screen-saver
Diffstat (limited to 'testing/xautolock/processwait.patch')
-rw-r--r--testing/xautolock/processwait.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/xautolock/processwait.patch b/testing/xautolock/processwait.patch
new file mode 100644
index 0000000000..8a8509a6b7
--- /dev/null
+++ b/testing/xautolock/processwait.patch
@@ -0,0 +1,33 @@
+--- src/engine.c.orig 2014-08-28 12:50:56.086307943 +0000
++++ 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