d189820055c6ceab25bdd82d1bf4f9a5880f9a34
[packages/autofs.git] / autofs-5.0.8-fix-task-manager-not-getting-signaled.patch
1 autofs-5.0.8 - fix task manager not getting signaled
2
3 From: Ian Kent <ikent@redhat.com>
4
5 If a task is added and the task list isn't empty and in progress
6 tasks depend on the new task completion the task manager doesn't
7 get signaled.
8 ---
9  CHANGELOG      |    1 +
10  daemon/state.c |   10 +++++-----
11  2 files changed, 6 insertions(+), 5 deletions(-)
12
13 diff --git a/CHANGELOG b/CHANGELOG
14 index 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  =======================
25 diff --git a/daemon/state.c b/daemon/state.c
26 index 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.091145 seconds and 2 git commands to generate.