From mboxrd@z Thu Jan 1 00:00:00 1970 From: rpeterso@sourceware.org Date: 14 Jul 2006 13:59:01 -0000 Subject: [Cluster-devel] cluster/group/dlm_controld action.c Message-ID: <20060714135901.11408.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: rpeterso at sourceware.org 2006-07-14 13:59:01 Modified files: group/dlm_controld: action.c Log message: A printf to stdout was getting redirected to the daemon's socket causing the daemon to log strange errors and mount hangs. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/dlm_controld/action.c.diff?cvsroot=cluster&r1=1.3&r2=1.4 --- cluster/group/dlm_controld/action.c 2006/06/14 20:03:04 1.3 +++ cluster/group/dlm_controld/action.c 2006/07/14 13:59:01 1.4 @@ -55,16 +55,16 @@ fd = open(fname, O_WRONLY); if (fd < 0) { - printf("open \"%s\" error %d %d\n", fname, fd, errno); + log_error("open \"%s\" error %d %d\n", fname, fd, errno); return -1; } - printf("write \"%s\" to \"%s\"\n", val, fname); + log_debug("write \"%s\" to \"%s\"\n", val, fname); len = strlen(val) + 1; rv = write(fd, val, len); if (rv != len) { - printf("write %d error %d %d\n", len, rv, errno); + log_error("write %d error %d %d\n", len, rv, errno); rv = -1; } else rv = 0;