[PATCH v2 0/2] silent fork retry with shm (broke emacs-X11)

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jul 31 16:59:00 GMT 2019


On Jul 31 12:35, Michael Haubenwallner wrote:
> Hi Corinna,
> 
> On 7/30/19 6:07 PM, Corinna Vinschen wrote:
> > Hi Michael,
> > 
> > On Jul 30 17:22, Michael Haubenwallner wrote:
> >> Hi,
> >>
> >> following up
> >> https://cygwin.com/ml/cygwin-patches/2019-q2/msg00155.html
> >>
> >> It turns out that fixup_shms_after_fork does require the child pinfo to
> >> be "remember"ed, while the fork retry to be silent on failure requires
> >> the child to not be "attach"ed yet.
> >>
> >> As current pinfo.remember performs both "remember" and "attach" at once,
> >> the first patch does introduce pinfo.remember_without_attach, to not
> >> change current behaviour of pinfo.remember and keep patches small.
> >>
> >> However, my first thought was to clean up pinfo API a little and have
> >> remember not do both "remember+attach" at once, but introduce some new
> >> remember_and_attach method instead.  But then, when 'bool detach' is
> >> true, the "_and_attach" does feel wrong.
> > 
> > I'd prefer to drop the reattach call from remember, calling both of them
> > where appropriate.
> > 
> 
> Fine with me, even if that looks a little more complicated for spawn.

Pushed, with just a small formatting tweak.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20190731/2b8a9ec8/attachment.sig>


More information about the Cygwin-patches mailing list