bozo: avoid canceling the sigkill timer for hung processes
[openafs.git] / src / bozo / fsbnodeops.c
index 8e0717a..e93a6d7 100644 (file)
@@ -771,7 +771,12 @@ SetNeedsClock(struct fsbnode *ab)
 {
     afs_int32 timeout = POLLTIME;
 
-    if (ab->b.goal == 1 && ab->fileRunning && ab->volRunning
+    if ((ab->fileSDW && !ab->fileKillSent) || (ab->volSDW && !ab->volKillSent)
+       || (ab->scanSDW && !ab->scanKillSent) || (ab->salSDW && !ab->salKillSent)
+       || (ab->salsrvSDW && !ab->salsrvKillSent)) {
+       /* SIGQUIT sent, will send SIGKILL if process does not exit */
+       ab->needsClock = 1;
+    } else if (ab->b.goal == 1 && ab->fileRunning && ab->volRunning
        && (!ab->scancmd || ab->scanRunning)
        && (!ab->salsrvcmd || ab->salsrvRunning)) {
        if (ab->b.errorStopCount) {