Date: Sun, 17 Sep 2006 10:46:48 -0700 From: Charles Mujie <charles@ibrigge.com> To: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp> Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: dkfilter-0.10_1 Message-ID: <450D8A08.7070709@ibrigge.com> In-Reply-To: <20060917195425.e670b537.yanagisawa@csg.is.titech.ac.jp> References: <450CA21C.3080407@ibrigge.com> <20060917195425.e670b537.yanagisawa@csg.is.titech.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Yanagisawa-san, I did some more troubleshooting of my own last night I found out that by increasing the sleep time to 5 secs or more the problem doesn't occur. I agree with you analysis that there is some kind of race condition between line 48 and 52. Thanks for the patch you e-mail me. I've applied the patch and rebooted a couple of times and it looks fine. Thanks again. /cm Yoshisato YANAGISAWA wrote: >Dear Charles, > >Thank you for reporting the problem. > >On Sat, 16 Sep 2006 18:17:16 -0700 >Charles Mujie <charles@ibrigge.com> wrote: > > > >>I have a question on dkfilter-0.10_1. I've managed to install the port >>successfully and everything is running fine. However when I enable >>dkfilter_out_enable="YES" in the /etc/rc.conf file it stops at line 52 >>"logger -t ${name} `cat ${tmpfile}`". I have to do a control-D to >>continue the boot process. I was wandering if anyone has reported this >>problem before. >> >> > >Unfortunately, no one has reported this problem. >However, I found that the same problem occured on my FreeBSD machine. > >I found a work around to avoid this problem. >The work around is change the time in line 51 from 1 to 10 or something. >I suppose that some kind of racing condition occurs between daemon >command in line 48 and cat command in line 52. >I also found that the same problem occurs even in dkfilter_in. >This might also avoided with the work around above. > >I also made a patch, which is attached to this email. >With the patch, dkfilter_out script will spin wait until a size of >a temporary file becomes larger than 0, instead of just wating 1 >secound. This patch fixed the problem on my FreeBSD machine. >If the patch solves your problem, please let me know. >I will sendpr this. > >Thank you, >Yoshisato YANAGISAWA. > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?450D8A08.7070709>