AFSOP_STOP_RXEVENT sometimes set without wakeup
authorDerrick Brashear <shadow@dementia.org>
Tue, 21 Jul 2009 17:14:57 +0000 (13:14 -0400)
committerRuss Allbery <rra@stanford.edu>
Tue, 21 Jul 2009 18:49:53 +0000 (11:49 -0700)
make sure when AFSOP_STOP_RXEVENT is set, a wakeup is sent on the
variable so waiters realize it's the case

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/162
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Russ Allbery <rra@stanford.edu>

src/afs/afs_cell.c

index b7553cb..6c153c7 100644 (file)
@@ -59,6 +59,7 @@ afs_StopAFSDB(void)
     } else {
        afsdb_handler_shutdown = 1;
        afs_termState = AFSOP_STOP_RXEVENT;
+       afs_osi_Wakeup(&afs_termState);
     }
 }