lkml.org 
[lkml]   [2005]   [Oct]   [12]   [last100]   RSS-feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Complete thread (EXPERIMENTAL)
/
DateWed, 12 Oct 2005 09:54:44 +0200
From"Dieter_Müller_(BOI_GmbH)" <>
Subjectblocking file lock functions (lockf,flock,fcntl) do not return after timer signal
Digg This
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

\
ISP Services
Valid XHTML 1.0!\ /
Valid CSS! Last update: 2005-10-12 07:59    [W:0.587 / U:0.040 seconds]
©2003-2005 Jasper Spaans