All of lore.kernel.org
 help / color / mirror / Atom feed
* blocking file lock functions (lockf,flock,fcntl) do not return after timer signal
@ 2005-10-12  7:54 "Dieter Müller (BOI GmbH)"
  2005-10-12 12:48 ` Alex Riesen
  0 siblings, 1 reply; 12+ messages in thread
From: "Dieter Müller (BOI GmbH)" @ 2005-10-12  7:54 UTC (permalink / raw)
  To: linux-kernel

bug description:

flock, lockf, fcntl do not return even after the signal SIGALRM  has 
been raised and the signal handler function has been executed
the functions should return with a return value EWOULDBLOCK as described 
in the man pages


test:

sequence of called functions (start the test in 2 terminal sessions)
1. signal
2. setitimer
3. fopen
4. fileno
5. fcntl with F_WRLCK and F_SETLKW (or flock or lockf)
6. getchar (to keep the lock in the 1st session; now start the 2nd)
in the 2nd session the file lock function (fcntl) will not return


kernel versions:

2.4.18-64GB-SMP
2.4.21psetlvm
2.6.11.4-21.9-default


please reply or CC to mailto:boi@boi.at



Dieter Mueller-Wipperfuerth
BOI GmbH.
Spazgasse 4
4040 Linz
Austria


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

end of thread, other threads:[~2005-10-12 21:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-12  7:54 blocking file lock functions (lockf,flock,fcntl) do not return after timer signal "Dieter Müller (BOI GmbH)"
2005-10-12 12:48 ` Alex Riesen
2005-10-12 13:09   ` linux-os (Dick Johnson)
2005-10-12 14:39   ` Trond Myklebust
2005-10-12 15:10     ` Alex Riesen
2005-10-12 15:20       ` linux-os (Dick Johnson)
2005-10-12 15:37         ` Michael Kerrisk
2005-10-12 15:43           ` linux-os (Dick Johnson)
2005-10-12 16:05             ` Michael Kerrisk
2005-10-12 16:06             ` Mark Lord
2005-10-12 21:15         ` Alex Riesen
2005-10-12 16:36       ` Trond Myklebust

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.