Date: Thu, 1 Mar 2001 07:30:02 -0800 (PST) From: David Malone <dwmalone@maths.tcd.ie> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/25474: dump can't close fifo pipe correctly Message-ID: <200103011530.f21FU2W23490@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/25474; it has been noted by GNATS. From: David Malone <dwmalone@maths.tcd.ie> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103011530.f21FU2W23490>