[GRASS-dev] [GRASS GIS] #3282: v.report Broken pipe

#3282: v.report Broken pipe
---------------------+-------------------------
Reporter: hcho | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Default | Version: svn-trunk
Keywords: | CPU: x86-64
Platform: Linux |
---------------------+-------------------------
When v.report output is piped to another program and that program stops
reading the output, Python throws an IOError exception.

IOError: [Errno 32] Broken pipe

Related discussions: http://stackoverflow.com/questions/14207708/ioerror-
errno-32-broken-pipe-python

Not sure what's the best way to fix it.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3282&gt;
GRASS GIS <https://grass.osgeo.org>

#3282: v.report Broken pipe
----------------------+-------------------------
  Reporter: hcho | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.1
Component: Default | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: Linux
----------------------+-------------------------

Comment (by hcho):

Reproduce this issue in the NC sample dataset:

{{{
v.report firestations option=coor | head -2
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3282#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>