From owner-freebsd-ports@FreeBSD.ORG Sun Sep 17 10:54:31 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF1FE16A415 for ; Sun, 17 Sep 2006 10:54:30 +0000 (UTC) (envelope-from yanagisawa@csg.is.titech.ac.jp) Received: from mail.csg.is.titech.ac.jp (mail.csg.is.titech.ac.jp [131.112.40.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F92743D64 for ; Sun, 17 Sep 2006 10:54:30 +0000 (GMT) (envelope-from yanagisawa@csg.is.titech.ac.jp) Received: from mail.csg.is.titech.ac.jp (mail.csg.is.titech.ac.jp [127.0.0.1]) by mail.csg.is.titech.ac.jp (Postfix) with ESMTP id B9F4A10003FB; Sun, 17 Sep 2006 19:54:28 +0900 (JST) Received: from frodo.csg.is.titech.ac.jp (frodo.csg.is.titech.ac.jp [131.112.40.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.csg.is.titech.ac.jp (Postfix) with ESMTP id A53AE1002D91; Sun, 17 Sep 2006 19:54:28 +0900 (JST) Date: Sun, 17 Sep 2006 19:54:25 +0900 From: Yoshisato YANAGISAWA To: Charles Mujie Message-Id: <20060917195425.e670b537.yanagisawa@csg.is.titech.ac.jp> In-Reply-To: <450CA21C.3080407@ibrigge.com> References: <450CA21C.3080407@ibrigge.com> Organization: Tokyo Institute of Technology. X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Sun__17_Sep_2006_19_54_25_+0900_026Go3ANx+GMN7py" X-Virus-Scanned: ClamAV using ClamSMTP Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: dkfilter-0.10_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2006 10:54:31 -0000 This is a multi-part message in MIME format. --Multipart=_Sun__17_Sep_2006_19_54_25_+0900_026Go3ANx+GMN7py Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Dear Charles, Thank you for reporting the problem. On Sat, 16 Sep 2006 18:17:16 -0700 Charles Mujie 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. -- ------------------------------------------------------- Yoshisato YANAGISAWA Dept. of Mathematical and Computing Sciences, Graduate School of Information Science and Engineering, Tokyo Institute of Technology. /* If you are an *BSD user, let's join http://bsdstats.org/ */ --Multipart=_Sun__17_Sep_2006_19_54_25_+0900_026Go3ANx+GMN7py Content-Type: application/octet-stream; name="dkfilter.patch" Content-Disposition: attachment; filename="dkfilter.patch" Content-Transfer-Encoding: base64 ZGlmZiAtcnVOIGRrZmlsdGVyLmJhay9maWxlcy9ka2ZpbHRlcl9pbi5pbiBka2ZpbHRlci9maWxl cy9ka2ZpbHRlcl9pbi5pbgotLS0gZGtmaWx0ZXIuYmFrL2ZpbGVzL2RrZmlsdGVyX2luLmluCVN1 biBTZXAgMTcgMTk6MTM6NDUgM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