From owner-freebsd-bugs Thu Mar 1 7:30: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BD1F737B71A for ; Thu, 1 Mar 2001 07:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f21FU2W23490; Thu, 1 Mar 2001 07:30:02 -0800 (PST) (envelope-from gnats) Date: Thu, 1 Mar 2001 07:30:02 -0800 (PST) Message-Id: <200103011530.f21FU2W23490@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David Malone Subject: Re: bin/25474: dump can't close fifo pipe correctly Reply-To: David Malone Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/25474; it has been noted by GNATS. From: David Malone To: bakhtin@amt.ru Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/25474: dump can't close fifo pipe correctly Date: Thu, 1 Mar 2001 15:21:42 +0000 On Thu, Mar 01, 2001 at 05:13:14PM +0300, bakhtin@amt.ru wrote: > >Description: > > I'm trying to dump my filesystems to fifo pipe (created by mkfifo) and > have got a problem. If we use dump -f FILE and FILE is fifo, it dumps > fs fine, but after that it fails to close this file. Looking into dump sources > (tape.c file) I have found a problem: after closing the file it tries to > reopen it several times: > while ((f = open(tape, 0)) < 0) > sleep (10); > (void) close(f); > > And because nobody is listening at the other end of this pipe, > we'll wait for a long time... Using dump -f doesn't seem to work that well for anything but tapes unless you specify stdout. I'd recommend that you try: dump -f - /usr > /my/fifo The man page should probably indicate that this is the case. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message