This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: navid Rahimi <rahimi dot nv at gmail dot com>
- Cc: Joseph Myers <joseph at codesourcery dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 11 Sep 2015 13:41:07 -0700 (PDT)
- Subject: Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- Authentication-results: sourceware.org; auth=none
- References: <55F19819 dot 3010601 at gmail dot com> <20150911182249 dot GD640 at vapier> <CAOUBrm3me5L+9XxRz5-a+vGURKzD4Z9DxJWfx2GpSjL6x8ywhw at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1509111955160 dot 14056 at digraph dot polyomino dot org dot uk> <CAOUBrm3Y9F6SeQFpYCuB-_s9Bbe8Vkaf5gkTMBBbgncOhvJ1wQ at mail dot gmail dot com>
That article talks about the complications of using vfork with standard
library interfaces. That is not directly relevant to using vfork in the
implementation of the library. The vfork semantics raise subtle issues and
great care needs to be taken when using it, but the article you cited is
not really relevant to implementation choices here.