All of lore.kernel.org
 help / color / mirror / Atom feed
* Race in expire code
@ 2005-01-29 13:36 raven
  2005-01-29 13:51 ` Steinar H. Gunderson
  0 siblings, 1 reply; 5+ messages in thread
From: raven @ 2005-01-29 13:36 UTC (permalink / raw)
  To: autofs mailing list


Hi all,

I've had three reports now, of mounts not expiring. This appears to be 
caused by a race in the function st_expire in automount.c.

Can everyone who is maintaining downstream packages please chaeck that 
the code in their package ends up looking like what the patch below 
acheives.

And for those that have reported the problem, please try this patch.

Ian

--- autofs-4.1.3-michael/daemon/automount.c.sig-fix	2005-01-19 20:11:09.000000000 +0800
+++ autofs-4.1.3-michael/daemon/automount.c	2005-01-19 20:12:02.000000000 +0800
@@ -920,8 +920,8 @@
  		return 1;

  	case EXP_STARTED:
-		sigprocmask(SIG_SETMASK, &ready_sigs, NULL);
  		ap.state = ST_EXPIRE;
+		sigprocmask(SIG_SETMASK, &ready_sigs, NULL);
  		return 0;
  	}
  	return 1;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-31 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-29 13:36 Race in expire code raven
2005-01-29 13:51 ` Steinar H. Gunderson
2005-01-29 14:13   ` raven
2005-01-31 15:34     ` Jeff Moyer
2005-01-31 16:47       ` Chris Feist

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.