lkml.org 
[lkml]   [1999]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: New kernel - netscape hangs
Date
> 
> > A lockd bug in Linux 2.2.1 causes netscape to hang when hitting the
> > "new msg" button. It took me a while to figure out what was going
> > on. I have sent a patch to Linus. I hope it will be fixed in the
> > official kernel soon. I am enclosing the patch here.
>
> This is wrong. *Do not apply this patch*. If you rely on file locking
> and your lock daemon happens to be unreachable your machine will
> continue away without realising if you use this patch. A week layer when
>

With my patch, fcntl will return -1 and set errno to EINVAL. It is up
to the mail proram to detect this condition and proceed accordingly.
BTW, it is requred by POSIX to return EINVAL if file locking is not
available for the file desrcriptor.

> you notice your mail spool will be full of corrupt mailboxes and your
> user base will hate you while your manager demands you change OS.

If it happens, it is caused by the broken mail proram.

> Use the "nolock" mount option. That tells Linux you know there is no
> file locking, you don't care there is no file locking, you aren't using
> remote file locking.
>

It is irrelevant to my patch. My patch fixes a POSIX bug.

--
H.J. Lu (hjl@gnu.org)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.085 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site