From owner-ctm-users@FreeBSD.ORG Mon Jan 19 21:48:10 2004 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E58516A4CE for ; Mon, 19 Jan 2004 21:48:10 -0800 (PST) Received: from sccimhc02.asp.att.net (sccimhc02.asp.att.net [63.240.76.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52FBC43D4C for ; Mon, 19 Jan 2004 21:48:08 -0800 (PST) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (12-216-240-169.client.mchsi.com[12.216.240.169]) by sccimhc02.asp.att.net (sccimhc02) with ESMTP id <20040120054807im20067uvee>; Tue, 20 Jan 2004 05:48:07 +0000 Message-ID: <400CC116.6050009@math.missouri.edu> Date: Mon, 19 Jan 2004 23:48:06 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040117 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ctm-users@freebsd.org References: <20040119082251.GA2708@server.vk2pj.dyndns.org> <400C9A7C.1000508@math.missouri.edu> In-Reply-To: <400C9A7C.1000508@math.missouri.edu> Content-Type: multipart/mixed; boundary="------------090009040102050407040708" Subject: Re: CTM problem X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2004 05:48:10 -0000 This is a multi-part message in MIME format. --------------090009040102050407040708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Stephen Montgomery-Smith wrote: > Peter Jeremy wrote: > >> CTM seems to have died sometime after 2004-Jan-17 0055 UTC - the >> last delta mailed or available via FTP is cvs-cur.9944.gz >> > > The enclosed patch seems to fix the problem, well, at least it is a band aid. cvs-cur should start up again tonight. (The setlinebuf is added so that the log files are a bit more informative for me.) Stephen --------------090009040102050407040708 Content-Type: text/plain; name="ddd.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ddd.txt" --- mkctm.c-orig Mon Jan 19 23:27:59 2004 +++ mkctm.c Mon Jan 19 23:30:53 2004 @@ -217,7 +217,7 @@ { u_long l = s2.st_size + 2; u_char *cmd = alloca(strlen(buf1)+strlen(buf2)+100); - u_char *ob = alloca(l), *p; + u_char *ob = malloc(l), *p; int j; FILE *F; @@ -291,6 +291,7 @@ s_sub_files++; s_sub_bytes += s2.st_size; } + free(ob); } finish: munmap(p1, s1.st_size); @@ -547,6 +548,8 @@ logf = fopen(optarg, "w"); if (!logf) err(1, "%s", optarg); + else + setlinebuf(logf); break; case 'q': verbose--; --------------090009040102050407040708--