]> git.pld-linux.org Git - packages/autofs.git/blob - autofs-4.1.3-signal-race-fix.patch
- automount doesn't have -TERM parameter
[packages/autofs.git] / autofs-4.1.3-signal-race-fix.patch
1 --- autofs-4.1.3/daemon/automount.c.orig        2004-08-18 11:23:49.430470256 -0400
2 +++ autofs-4.1.3/daemon/automount.c     2004-08-18 11:24:45.047015256 -0400
3 @@ -848,10 +848,10 @@ static int st_prepare_shutdown(void)
4         alarm(0);
5  
6         /* Prevent any new mounts */
7 -       ap.state = ST_SHUTDOWN_PENDING;
8 -
9         sigprocmask(SIG_SETMASK, &lock_sigs, NULL);
10  
11 +       ap.state = ST_SHUTDOWN_PENDING;
12 +
13         /* Unmount everything */
14         exp = expire_proc(1);
15  
16 @@ -919,8 +919,8 @@ static int st_expire(void)
17                 return 1;
18  
19         case EXP_STARTED:
20 -               ap.state = ST_EXPIRE;
21                 sigprocmask(SIG_SETMASK, &ready_sigs, NULL);
22 +               ap.state = ST_EXPIRE;
23                 return 0;
24         }
25         return 1;
This page took 0.053979 seconds and 3 git commands to generate.