[CWB] [ cwb-Bugs-3427282 ] CQP output redirect doesn't always check
SIGPIPE
SourceForge.net
noreply at sourceforge.net
Sat Oct 22 22:05:47 CEST 2011
Bugs item #3427282, was opened at 2011-10-22 22:05
Message generated for change (Tracker Item Submitted) made by schtepf
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=3427282&group_id=131809
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: CQP interface
Group: None
Status: Open
Resolution: None
Priority: 4
Private: No
Submitted By: Stefan Evert (schtepf)
Assigned to: Stefan Evert (schtepf)
Summary: CQP output redirect doesn't always check SIGPIPE
Initial Comment:
When redirecting "cat;" output to a pipe, CQP installs a signal handler to check for broken pipe signals, so the output loop can be aborted (important e.g. when displaying a large query result in the interactive pager). Other output commands with redirect – count, tabulate, etc. – fail to do so.
The signal handler code should be merged into the open_stream() and close_stream() functions in <cqp/output.h>. All CQP output commands that support redirects through this mechanism will then only have to check the global variable broken_pipe<cqp/output.h>.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=3427282&group_id=131809
More information about the CWB
mailing list