Felipe Contreras wrote:

> > > > > Processes are not being started correctly with TIOCSCTTY, which does
> > > > > succeed after setsid().
> > > > >
> > > > > None of that stuff is necessary, including the silencing of SIGHUP.
> > > > >
> > > > > It's not even executed when shellpipe is off.
> > > >
> > > > I suspect removing setsid() will cause trouble if a terminal with a
> > > > shell is started and that shell exits.
> > >
> > > No, I tested that.
> >
> > On which systems?
> 
> Linux (5.12.8).

There are a dozen different Unix-like systems with slightly different
behavior.  I care about all of them.  It should be possible to at least
test some BSD versions.  But there are also SYSV derivatives that
matter, such as HPUX.

It's difficult to test everything, that is why I prefer to make minimal
changes that actually solve a problem.  If we don't know why that
setsid() was there, then removing it probably breaks something.

-- 
MONK: ... and the Lord spake, saying, "First shalt thou take out the Holy Pin,
      then shalt thou count to three, no more, no less.  Three shalt be the
      number thou shalt count, and the number of the counting shalt be three.
      Four shalt thou not count, neither count thou two, excepting that thou
      then proceed to three.  Five is right out.  Once the number three, being
      the third number, be reached, then lobbest thou thy Holy Hand Grenade of
      Antioch towards thou foe, who being naughty in my sight, shall snuff it.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202106010812.1518CPJJ2243629%40masaka.moolenaar.net.

Raspunde prin e-mail lui