Does logging work with fifo?

Peng Yu <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CABrM6wm-R87+SWvqys6QBQNaF1D0OXtDfoRrTgRzQNW3N0D4pw@mail.gmail.com>
I use the following command in the batch mode to print out the
backtrace information.  /tmp/tmp.TNLBr685Zp is a fifo.

###
set logging redirect
set logging file /tmp/tmp.TNLBr685Zp
set logging on
commands 1-2644
backtrace 2
continue
end
run
###

While the gdb process runs in the background (via & in shell), the
fifo is catted (via the command cat) and piped (via pipeline '|' in
shell) to a following process for reading and processing the logging
output. However, it seems that sometimes it finishes prematurely. I
have no clue what the problem is. Could it be that logging does not
work well with fifo?

Thanks.

-- 
Regards,
Peng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.