summarylogtreecommitdiffstats
path: root/union-wait.patch
blob: e134bbf529d6c2d7f29938c62a9af4eaf3b7c64a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -ru xautolock-2.2-orig/src/engine.c xautolock-2.2/src/engine.c
--- xautolock-2.2-orig/src/engine.c	2007-12-28 18:15:26.000000000 +0100
+++ xautolock-2.2/src/engine.c	2018-05-31 14:13:55.438216644 +0200
@@ -210,22 +210,14 @@
 #else /* VMS */
   if (lockerPid)
   {
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
-    union wait  status;      /* childs process status */
-#else /* !UTEKV && !SYSV && !SVR4 */
     int         status = 0;  /* childs process status */
-#endif /* !UTEKV && !SYSV && !SVR4 */
 
     if (unlockNow && !disabled)
     {
       (void) kill (lockerPid, SIGTERM);
     }
 
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
-    if (wait3 (&status, WNOHANG, 0))
-#else /* !UTEKV && !SYSV && !SVR4 */
     if (waitpid (-1, &status, WNOHANG)) 
-#endif /* !UTEKV && !SYSV && !SVR4 */
     {
      /*
       *  If the locker exited normally, we disable any pending kill