From owner-cvs-projects@FreeBSD.ORG Tue Feb 21 01:10:23 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E818816A420; Tue, 21 Feb 2006 01:10:23 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A395643D45; Tue, 21 Feb 2006 01:10:23 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1L1ANKr076500; Tue, 21 Feb 2006 01:10:23 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1L1ANhs076499; Tue, 21 Feb 2006 01:10:23 GMT (envelope-from mux) Message-Id: <200602210110.k1L1ANhs076499@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 21 Feb 2006 01:10:23 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup threads.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 01:10:24 -0000 mux 2006-02-21 01:10:23 UTC FreeBSD projects repository Modified files: csup threads.c Log: Create the worker threads in the detached state since we don't use pthread_join() to wait for them but have our own API for that (which allows us to wait for multiple threads). Revision Changes Path 1.7 +6 -2 projects/csup/threads.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 21 02:49:59 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B57DF16A420; Tue, 21 Feb 2006 02:49:59 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84DC643D45; Tue, 21 Feb 2006 02:49:59 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1L2nxBq079879; Tue, 21 Feb 2006 02:49:59 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1L2nxtU079878; Tue, 21 Feb 2006 02:49:59 GMT (envelope-from mux) Message-Id: <200602210249.k1L2nxtU079878@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 21 Feb 2006 02:49:59 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 02:49:59 -0000 mux 2006-02-21 02:49:59 UTC FreeBSD projects repository Modified files: csup mux.c Log: Fix a race related to the multiplexer shutdown. Since mux_shutdown() needs to unlock the multiplexer mutex to cancel the sender and receiver threads and that it was setting the "closed" status before unlocking, another thread calling mux_shutdown() could return immediately, even though the other thread doing the shutdown has not finished cancelling the threads. The net effect to this race was that if the receiver thread got his connection closed and thus called mux_shutdown(), it would wake up the worker threads and, in turn, the main thread waiting on them, and the main thread would eventually call mux_close() before the receiver thread has finished killing the sender one, freeing the multiplexer data structures under its feet. To fix this, have both a "closing" and a "closed" flag. The "closing" flag means that someone is taking care of the shutdown, but he has not finished it. The "closed" flag means the multiplexer is really closed now. If a thread calls mux_shutdown() while the multiplexer is in the "closing" state, it will wait on the "done" condition variable so that it don't return before the multiplexer is fully closed. And if we are the thread doing the shutdown, we relock the multiplexer, set the "closed" flag and signal the waiting threads only when we are done killing the threads. Revision Changes Path 1.66 +17 -2 projects/csup/mux.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 21 18:37:40 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B22A816A420; Tue, 21 Feb 2006 18:37:40 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEB4343D68; Tue, 21 Feb 2006 18:37:35 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1LIbZaG057508; Tue, 21 Feb 2006 18:37:35 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1LIbZfl057507; Tue, 21 Feb 2006 18:37:35 GMT (envelope-from mux) Message-Id: <200602211837.k1LIbZfl057507@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 21 Feb 2006 18:37:35 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c mux.h X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 18:37:40 -0000 mux 2006-02-21 18:37:35 UTC FreeBSD projects repository Modified files: csup mux.c mux.h Log: - Export the mux_shutdown() function for external use. - In mux_shutdown(), keep the multiplexer lock when printing error messages from the receiver or sender threads, in order to avoid unordered messages. - Also in mux_shutdown(), do not access m->sender or m->receiver when we don't own the lock. It should not be a problem since those are supposed to stay unchanged, but it's better style to copy them and use the copy when unlocked. And avoid determining which thread we are two times in a row. Revision Changes Path 1.67 +20 -19 projects/csup/mux.c 1.24 +2 -1 projects/csup/mux.h From owner-cvs-projects@FreeBSD.ORG Wed Feb 22 21:27:01 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D065716A420; Wed, 22 Feb 2006 21:27:01 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EB1043D45; Wed, 22 Feb 2006 21:27:01 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1MLR1wh087061; Wed, 22 Feb 2006 21:27:01 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1MLR1Hc087060; Wed, 22 Feb 2006 21:27:01 GMT (envelope-from mux) Message-Id: <200602222127.k1MLR1Hc087060@repoman.freebsd.org> From: Maxime Henrion Date: Wed, 22 Feb 2006 21:27:01 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup detailer.c lister.c main.c misc.h mux.c mux.h proto.c proto.h status.c threads.c threads.h updater.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 21:27:02 -0000 mux 2006-02-22 21:27:01 UTC FreeBSD projects repository Modified files: csup detailer.c lister.c main.c misc.h mux.c mux.h proto.c proto.h status.c threads.c threads.h updater.c Log: Many changes which allow csup to properly handle any synchronous or asynchronous error and to print meaningful messages nearly all the time. Hangs should not happen anymore, even in case of an error. We also correctly handle being sent some signals such as SIGINT, by correctly updating the status file and cleaning after us. Finally, csup now returns a proper exit code: 0 in case of success or 1 in case of an error, similarly to CVSup. Detailed list of changes: - Move the fattr_init() and fattr_fini() calls earlier to avoid calling them several times during a run. - When printing the "Connected to" message, print the actual address we are connected. This makes us deviate slightly from CVSup, but since csup tries any address returned by a host (including IPv6 addresses), we really need to know where we connected. - Make the errors/error messages handling much nicer in the status file API. Nearly all the asprintf() calls are centralized now. - Before entering multi-threaded mode, starts a "killer" thread that will spend most of his time blocking in sigwait() and will call mux_shutdown() to nicely abort the run in case we get a fatal signal. - Remove the need for the "closing" condition variable in mux_shutdown(), we are now handling the race it protected against much more sanely. We just disable cancellation in the "killer" thread before calling mux_shutdown() and re-enable it afterwards. This way, we can stop the killer thread at any time and after having joined it we know it is safe to call mux_close() since there are no more references to it but us. - We now pass a "status" parameter to mux_shutdown() indicating wether this is a normal call, a call because of a transient failure or hard failure, or a call because of a signal interruption. The "status" parameter of the very first mux_shutdown() is retained and returned later by mux_close, so that the main thread knows what happened. - We also pass an optional error message to mux_shutdown(), that will only be printed in the first call to mux_shutdown() and before doing the actual work. - Update the lister, detailer and updater threads to correctly check for error on read/write/parsing. Generate a proper error message in each case and return it back to the main thread, along with a status code indicating either success, failure or a transient failure. - Always call status_close() in the updater thread, to ensure that the status file is properly updated even if we are being interrupted by an error. - Slightly tweak the threads API to make it match our needs more closely. - Add a few useful comments here and there. - Rename proto_init() to the more correct proto_run() name. - Use the status code returned by the worker thread to only retry a run when we had a transient error, and to return a proper exit code at the end of the program's execution. Revision Changes Path 1.40 +151 -67 projects/csup/detailer.c 1.24 +195 -98 projects/csup/lister.c 1.32 +11 -7 projects/csup/main.c 1.23 +19 -1 projects/csup/misc.h 1.68 +63 -57 projects/csup/mux.c 1.25 +3 -3 projects/csup/mux.h 1.74 +161 -35 projects/csup/proto.c 1.12 +2 -2 projects/csup/proto.h 1.13 +119 -65 projects/csup/status.c 1.8 +10 -15 projects/csup/threads.c 1.6 +2 -2 projects/csup/threads.h 1.76 +214 -148 projects/csup/updater.c From owner-cvs-projects@FreeBSD.ORG Wed Feb 22 21:40:56 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3647116A420; Wed, 22 Feb 2006 21:40:56 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8B3443D58; Wed, 22 Feb 2006 21:40:55 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1MLetaw087766; Wed, 22 Feb 2006 21:40:55 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1MLetOt087765; Wed, 22 Feb 2006 21:40:55 GMT (envelope-from mux) Message-Id: <200602222140.k1MLetOt087765@repoman.freebsd.org> From: Maxime Henrion Date: Wed, 22 Feb 2006 21:40:55 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup TODO X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 21:40:56 -0000 mux 2006-02-22 21:40:55 UTC FreeBSD projects repository Modified files: csup TODO Log: The most gratifying part: remove obsoleted task from the bugs TODO. Revision Changes Path 1.36 +1 -11 projects/csup/TODO From owner-cvs-projects@FreeBSD.ORG Wed Feb 22 22:46:19 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C0D316A420; Wed, 22 Feb 2006 22:46:19 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 122D043D46; Wed, 22 Feb 2006 22:46:19 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1MMkIdo090610; Wed, 22 Feb 2006 22:46:18 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1MMkITk090609; Wed, 22 Feb 2006 22:46:18 GMT (envelope-from mux) Message-Id: <200602222246.k1MMkITk090609@repoman.freebsd.org> From: Maxime Henrion Date: Wed, 22 Feb 2006 22:46:18 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 22:46:19 -0000 mux 2006-02-22 22:46:18 UTC FreeBSD projects repository Modified files: csup mux.c Log: Make ECONNABORTED a transient failure like ECONNRESET. Revision Changes Path 1.69 +2 -2 projects/csup/mux.c From owner-cvs-projects@FreeBSD.ORG Wed Feb 22 23:22:05 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17B3B16A420; Wed, 22 Feb 2006 23:22:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C190B43D45; Wed, 22 Feb 2006 23:22:04 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1MNM4Yp091992; Wed, 22 Feb 2006 23:22:04 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1MNM4gE091991; Wed, 22 Feb 2006 23:22:04 GMT (envelope-from mux) Message-Id: <200602222322.k1MNM4gE091991@repoman.freebsd.org> From: Maxime Henrion Date: Wed, 22 Feb 2006 23:22:04 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c proto.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 23:22:05 -0000 mux 2006-02-22 23:22:04 UTC FreeBSD projects repository Modified files: csup mux.c proto.c Log: - Don't call errx() in chan_listen() if there are no available channels, this shouldn't happen, but return an error similar to csup. - Set errno to something similar to what csup will print if chan_accept() fails. - Tweak error messages. Revision Changes Path 1.70 +6 -3 projects/csup/mux.c 1.75 +3 -4 projects/csup/proto.c From owner-cvs-projects@FreeBSD.ORG Thu Feb 23 01:21:00 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C6BC16A420; Thu, 23 Feb 2006 01:21:00 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E390443D55; Thu, 23 Feb 2006 01:20:54 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1N1Krfm006476; Thu, 23 Feb 2006 01:20:53 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1N1KrKU006475; Thu, 23 Feb 2006 01:20:53 GMT (envelope-from mux) Message-Id: <200602230120.k1N1KrKU006475@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 23 Feb 2006 01:20:53 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup proto.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 01:21:00 -0000 mux 2006-02-23 01:20:53 UTC FreeBSD projects repository Modified files: csup proto.c Log: Bah, unbreak the case where the server rejected us at connection time so that we properly retry as before. While I'm here, make all the proto_*() functions return a STATUS_* code. Revision Changes Path 1.76 +27 -27 projects/csup/proto.c From owner-cvs-projects@FreeBSD.ORG Thu Feb 23 17:44:04 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96E5616A420; Thu, 23 Feb 2006 17:44:04 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 436FE43D48; Thu, 23 Feb 2006 17:44:04 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1NHi4ek010988; Thu, 23 Feb 2006 17:44:04 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1NHi4Fc010987; Thu, 23 Feb 2006 17:44:04 GMT (envelope-from mux) Message-Id: <200602231744.k1NHi4Fc010987@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 23 Feb 2006 17:44:03 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup pathcomp.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 17:44:04 -0000 mux 2006-02-23 17:44:03 UTC FreeBSD projects repository Modified files: csup pathcomp.c Log: In pathcomp_free() free pc->prev if it is not NULL, not if it's NULL :-). Spotted by: vs Revision Changes Path 1.3 +1 -1 projects/csup/pathcomp.c From owner-cvs-projects@FreeBSD.ORG Thu Feb 23 23:03:52 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7C8D16A420; Thu, 23 Feb 2006 23:03:52 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95E5F43D45; Thu, 23 Feb 2006 23:03:52 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1NN3q2A031145; Thu, 23 Feb 2006 23:03:52 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1NN3qtc031144; Thu, 23 Feb 2006 23:03:52 GMT (envelope-from mux) Message-Id: <200602232303.k1NN3qtc031144@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 23 Feb 2006 23:03:52 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 23:03:53 -0000 mux 2006-02-23 23:03:52 UTC FreeBSD projects repository Modified files: csup fattr.c Log: Oops, change a getpwnam() call that should have been getgrnam(). Revision Changes Path 1.37 +2 -2 projects/csup/fattr.c From owner-cvs-projects@FreeBSD.ORG Thu Feb 23 23:11:41 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C5F216A422; Thu, 23 Feb 2006 23:11:41 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC54943D45; Thu, 23 Feb 2006 23:11:40 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1NNBe1m031510; Thu, 23 Feb 2006 23:11:40 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1NNBeNh031509; Thu, 23 Feb 2006 23:11:40 GMT (envelope-from mux) Message-Id: <200602232311.k1NNBeNh031509@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 23 Feb 2006 23:11:40 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 23:11:41 -0000 mux 2006-02-23 23:11:40 UTC FreeBSD projects repository Modified files: csup fattr.c Log: Correctly fix the getpwnam() -> getgrnam() change. I need sleep. Revision Changes Path 1.38 +5 -4 projects/csup/fattr.c From owner-cvs-projects@FreeBSD.ORG Fri Feb 24 05:05:33 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AD1016A420; Fri, 24 Feb 2006 05:05:33 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C4C743D75; Fri, 24 Feb 2006 05:05:33 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1O55XjU061666; Fri, 24 Feb 2006 05:05:33 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1O55WJl061665; Fri, 24 Feb 2006 05:05:32 GMT (envelope-from mux) Message-Id: <200602240505.k1O55WJl061665@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 24 Feb 2006 05:05:32 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup GNUmakefile X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 05:05:33 -0000 mux 2006-02-24 05:05:32 UTC FreeBSD projects repository Modified files: csup GNUmakefile Log: Add $(PREFIX)/include to the includes directories, and $(PREFIX)/lib to the library search path. Revision Changes Path 1.3 +3 -3 projects/csup/GNUmakefile From owner-cvs-projects@FreeBSD.ORG Fri Feb 24 05:14:55 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C5D416A420; Fri, 24 Feb 2006 05:14:55 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58D0243D45; Fri, 24 Feb 2006 05:14:55 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1O5Et4x062001; Fri, 24 Feb 2006 05:14:55 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1O5EtvC062000; Fri, 24 Feb 2006 05:14:55 GMT (envelope-from mux) Message-Id: <200602240514.k1O5EtvC062000@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 24 Feb 2006 05:14:55 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup GNUmakefile X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 05:14:55 -0000 mux 2006-02-24 05:14:55 UTC FreeBSD projects repository Modified files: csup GNUmakefile Log: Define $(OWNER) and $(GROUP) variables to be passed to install(1), in the hope that will allow the Darwinport maintainer to remove his patch. Revision Changes Path 1.4 +5 -3 projects/csup/GNUmakefile From owner-cvs-projects@FreeBSD.ORG Fri Feb 24 22:27:43 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19FC116A420; Fri, 24 Feb 2006 22:27:43 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BDE343D68; Fri, 24 Feb 2006 22:27:40 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1OMRegD033725; Fri, 24 Feb 2006 22:27:40 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1OMReDG033724; Fri, 24 Feb 2006 22:27:40 GMT (envelope-from mux) Message-Id: <200602242227.k1OMReDG033724@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 24 Feb 2006 22:27:40 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup updater.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 22:27:43 -0000 mux 2006-02-24 22:27:40 UTC FreeBSD projects repository Modified files: csup updater.c Log: Use the correct filename when calling status_delete() in the updater thread, for the 'D' command. This fixes repeated output of "Delete" command when the file has already been removed. Revision Changes Path 1.77 +2 -2 projects/csup/updater.c From owner-cvs-projects@FreeBSD.ORG Fri Feb 24 23:01:32 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDE6B16A420; Fri, 24 Feb 2006 23:01:32 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BD8543D48; Fri, 24 Feb 2006 23:01:32 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1ON1W4r036990; Fri, 24 Feb 2006 23:01:32 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1ON1W7P036989; Fri, 24 Feb 2006 23:01:32 GMT (envelope-from mux) Message-Id: <200602242301.k1ON1W7P036989@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 24 Feb 2006 23:01:32 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c pathcomp.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 23:01:32 -0000 mux 2006-02-24 23:01:32 UTC FreeBSD projects repository Modified files: csup mux.c pathcomp.c Log: Fix whitespace at EOL. Revision Changes Path 1.71 +2 -2 projects/csup/mux.c 1.4 +1 -1 projects/csup/pathcomp.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 25 22:30:36 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF41916A420; Sat, 25 Feb 2006 22:30:36 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57F2B43D73; Sat, 25 Feb 2006 22:30:36 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1PMUaV3037547; Sat, 25 Feb 2006 22:30:36 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1PMUaKx037546; Sat, 25 Feb 2006 22:30:36 GMT (envelope-from mux) Message-Id: <200602252230.k1PMUaKx037546@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 25 Feb 2006 22:30:35 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup proto.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 22:30:36 -0000 mux 2006-02-25 22:30:35 UTC FreeBSD projects repository Modified files: csup proto.c Log: Cosmetics, no functional change. Revision Changes Path 1.77 +20 -21 projects/csup/proto.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 25 22:46:56 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE63716A422; Sat, 25 Feb 2006 22:46:56 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 548C843D76; Sat, 25 Feb 2006 22:46:54 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1PMksNl038315; Sat, 25 Feb 2006 22:46:54 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1PMksdX038314; Sat, 25 Feb 2006 22:46:54 GMT (envelope-from mux) Message-Id: <200602252246.k1PMksdX038314@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 25 Feb 2006 22:46:54 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup config.c config.h fattr.c fattr.h lister.c proto.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 22:46:57 -0000 mux 2006-02-25 22:46:54 UTC FreeBSD projects repository Modified files: csup config.c config.h fattr.c fattr.h lister.c proto.c Log: - At the time we're exchanging collection information in proto_xchgcoll(), compute a mask of file attributes we need to ignore, depending on the "SetOwner", "SetMode" and "SetFlags" collection options. - Always set the "SetMode" collection option. - Make fattr_encode() accepts a third parameter to provide a mask of attributes to ignore. - In proto_printf(), have the %f format pass 0 for the ignored attributes to fattr_encode(), and change the %F format so that the consumer now supplies the ignored attributes. - Change the lister thread to pass the ignored attributes when encoding attributes that we're sending to the server. Revision Changes Path 1.42 +3 -1 projects/csup/config.c 1.31 +2 -1 projects/csup/config.h 1.39 +3 -2 projects/csup/fattr.c 1.24 +2 -2 projects/csup/fattr.h 1.25 +7 -6 projects/csup/lister.c 1.78 +15 -5 projects/csup/proto.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 25 23:50:30 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5D9C16A45E; Sat, 25 Feb 2006 23:50:30 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A397E43D45; Sat, 25 Feb 2006 23:50:30 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1PNoUr7041758; Sat, 25 Feb 2006 23:50:30 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1PNoU5h041757; Sat, 25 Feb 2006 23:50:30 GMT (envelope-from mux) Message-Id: <200602252350.k1PNoU5h041757@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 25 Feb 2006 23:50:30 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup misc.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 23:50:31 -0000 mux 2006-02-25 23:50:30 UTC FreeBSD projects repository Modified files: csup misc.c Log: Call fflush() in lprintf() so that messages still happen at appropriate times when the output is read through a pipe or something else. Revision Changes Path 1.26 +2 -1 projects/csup/misc.c