Bug #274

Patch to try - Re: Sendmail rset command hangs socket on 1.6-Release

Added by dillon over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Please try this patch and tell me if it works. I think we have an issue
when one process holds an exclusive lock while 2 or more processes are
trying to get a shared lock, or vise-versa.

-Matt

Index: kern_lockf.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_lockf.c,v
retrieving revision 1.32
diff -u -r1.32 kern_lockf.c
--- kern_lockf.c 25 Jul 2006 20:01:50 -0000 1.32
+++ kern_lockf.c 2 Aug 2006 17:23:56 -0000
@@ -772,8 +772,10 @@
TAILQ_REMOVE(&lock->lf_blocked, range, lf_link);
range->lf_flags = 1;
wakeup(range);
+#if 0
if (range->lf_start >= start && range->lf_end <= end)
break;
+#endif
}
}

Also available in: Atom PDF