- updated to 5.0.8
[packages/autofs.git] / autofs-5.0.8-fix-task-manager-not-getting-signaled.patch
CommitLineData
15dae982
JR
1autofs-5.0.8 - fix task manager not getting signaled
2
3From: Ian Kent <ikent@redhat.com>
4
5If a task is added and the task list isn't empty and in progress
6tasks depend on the new task completion the task manager doesn't
7get signaled.
8---
9 CHANGELOG | 1 +
10 daemon/state.c | 10 +++++-----
11 2 files changed, 6 insertions(+), 5 deletions(-)
12
13diff --git a/CHANGELOG b/CHANGELOG
14index fb2f2d6..a01393c 100644
15--- a/CHANGELOG
16+++ b/CHANGELOG
17@@ -2,6 +2,7 @@
18 =======================
19 - fix undefined authtype_requires_creds err if ldap enabled but without sasl.
20 - fix master map type check.
21+- fix task manager not getting signaled.
22
23 17/10/2013 autofs-5.0.8
24 =======================
25diff --git a/daemon/state.c b/daemon/state.c
26index 8d81788..3174a9c 100644
27--- a/daemon/state.c
28+++ b/daemon/state.c
29@@ -818,13 +818,13 @@ done:
30 new = st_alloc_task(ap, state);
31 if (new)
32 list_add(&new->list, head);
33- /* Added to empty state queue, kick state machine */
34- signaled = 1;
35- status = pthread_cond_signal(&cond);
36- if (status)
37- fatal(status);
38 }
39
40+ signaled = 1;
41+ status = pthread_cond_signal(&cond);
42+ if (status)
43+ fatal(status);
44+
45 return 1;
46 }
47
This page took 0.06593 seconds and 4 git commands to generate.