[setup] [PATCH] Redirect stdin from /dev/null when running postinstall scripts

Igor Pechtchanski pechtcha@cs.nyu.edu
Thu Sep 16 20:36:00 GMT 2004


On Thu, 16 Sep 2004, Max Bowsher wrote:

> Pavel Tsekov wrote:
> > On Mon, 13 Sep 2004, Igor Pechtchanski wrote:
> >
> > > Hi,
> > >
> > > The patch below redirects stdin from /dev/null when running postinstall
> > > scripts, so that installation doesn't hang if a program called from a
> > > postinstall script decides to ask the user something.  AFAICS, this is
> > > against the CVS HEAD.
> >
> > But then what happens with the script that requested user input ? Isn't it
> > possible that the package would end up misconfigured ?
>
> Maybe. But better than setup hanging, and it's a pretty major bug in the
> package if it is doing critical user interaction in it's postinstall script.
>
> Max.

Right.  I've been toying with an idea of providing a dialog-like
interaction tool for postinstall scripts (instead of them reading from the
command line) which could be turned off with unattended installs, but it
looks like it'll be a non-trivial interaction, so I haven't done much on
it.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw



More information about the Cygwin-apps mailing list