Date: Thu, 22 Apr 1999 19:15:02 -0700 From: Mike Smith <mike@smith.net.au> To: Luoqi Chen <luoqi@watermarkgroup.com> Cc: dick@tar.com, jplevyak@inktomi.com, hackers@FreeBSD.ORG Subject: Re: flock + kernel threads bug Message-ID: <199904230215.TAA00635@dingo.cdrom.com> In-Reply-To: Your message of "Tue, 20 Apr 1999 17:19:57 EDT." <199904202119.RAA17889@lor.watermarkgroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> No, this is not an issue of separate task and thread structures. You may > have the same problem for two separate processes that share file descriptor > table, and john's fix would not work for this case. The correct solution > to this problem (in my opinion) is to clear all POSIX locks upon closure > of a file descriptor, which requires we keep in the file descriptor table > a list of procs that reference it. Hmm. We seem to need some better process/resource affinity tracking. I've just recently been looking at some code that wants for a callout on process exit; rather than adding yet more code to the process exit path it'd be nice to have a callout list for process events (fork, exit, etc.) More to think about I guess. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904230215.TAA00635>