diff options
author | davidovski <david@davidovski.xyz> | 2022-05-04 23:28:13 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-04 23:28:13 +0100 |
commit | 4c585ad54388285500fd18a6aaa516894e0f2c16 (patch) | |
tree | 756ab363c11ce8dec4d16e20885c5e422db4a92e /extra/xautolock | |
parent | 751b7f3d84515715d07d92a5aed78062bd39adff (diff) |
added xcatclock
Diffstat (limited to 'extra/xautolock')
-rw-r--r-- | extra/xautolock/processwait.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/xautolock/processwait.patch b/extra/xautolock/processwait.patch new file mode 100644 index 0000000..a288d9a --- /dev/null +++ b/extra/xautolock/processwait.patch @@ -0,0 +1,33 @@ +--- a/src/engine.c.orig 2014-08-28 12:50:56.086307943 +0000 ++++ b/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 |