[GRASS-dev] [GRASS GIS] #2775: Hangs when closing db drivers

GRASS GIS trac at osgeo.org
Thu Oct 22 03:03:46 PDT 2015


#2775: Hangs when closing db drivers
--------------------------+-------------------------
  Reporter:  rblazek      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Database     |    Version:  unspecified
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+-------------------------

Comment (by rblazek):

 Annother fix  suggested by Glynn and resolving the real problem also works
 https://lists.osgeo.org/pipermail/grass-dev/2015-October/076925.html

 {{{
         void close_on_exec(int fd)
         {
         #ifndef __MINGW32__
             int flags = fcntl(fd, F_GETFD);
             fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
         #endif
         }

         close_on_exec(p1[READ]);
         close_on_exec(p1[WRITE]);
         close_on_exec(p2[READ]);
         close_on_exec(p2[WRITE]);
 }}}

 Patch attached.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2775#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list