[GRASS-dev] Re: [GRASS GIS] #1159: v.in.ascii fails with long text file in WinGRASS-6.4.0-1

GRASS GIS trac at osgeo.org
Fri Sep 17 03:14:29 EDT 2010


#1159: v.in.ascii fails with long text file in WinGRASS-6.4.0-1
------------------------+---------------------------------------------------
 Reporter:  lponti      |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  normal      |   Milestone:  6.4.1                    
Component:  Vector      |     Version:  6.4.0                    
 Keywords:  v.in.ascii  |    Platform:  MSWindows 7              
      Cpu:  x86-32      |  
------------------------+---------------------------------------------------

Comment(by glynn):

 Replying to [comment:7 hamish]:

 > in 6.5svn db_shutdown_driver() for WinGrass effectively boils down to:
 {{{
     _cwait(&status, driver->pid, WAIT_CHILD);
 }}}

 The MSVCRT documentation for _cwait() says:
 {{{
 The value of procHandle passed to _cwait  should be the value returned by
 the call to the _spawn  function that created the specified process.
 }}}

 Except, db_start_driver() no longer uses spawn(), it uses G_spawn_ex(),
 which uses CreateProcess(). See r42651 (7.0) and r42654 (6.5).

 You may need to back-port G_wait() (in lib/gis/spawn.c) from 7.0 and use
 that. On Unix, it doesn't matter, as both approaches result in driver->pid
 containing a pid_t corresponding to the child process.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1159#comment:9>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list