]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return a more useful exit status
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Dec 2022 00:26:13 +0000 (18:26 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Dec 2022 00:26:13 +0000 (18:26 -0600)
scripts/jlibtool.c

index 4870466cbd4c110bfeeca9a5e2991e637edce285..faf5ca3b81ebc2da3199c72ed5d5c83b67a2880f 100644 (file)
@@ -961,7 +961,8 @@ static int external_spawn(command_t *cmd, __attribute__((unused)) char const *fi
                                kill(spawn_pid, SIGKILL);
 
                                waitpid(spawn_pid, &status, 0); /* Cleanup child state */
-                               timeout = false; /* reset */
+                               timeout = false;                /* Reset */
+                               return 128 + SIGALRM;           /* Allow the caller to figure out what happened */
                        }
 
                        /*