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

Max Bowsher maxb@ukf.net
Wed Sep 15 13:35:00 GMT 2004


Igor Pechtchanski wrote:
> On Wed, 15 Sep 2004, Max Bowsher wrote:
>> Indeed it is. Please go ahead and commit it.
>
> Done.

Thanks.

> Are you saying that the following postinstall script worked for you?
>
> --- BEGIN BLAH.sh ---
> #!/bin/sh
> read dummy
> ---- END BLAH.sh ----
>
>> And installing tetex-tiny worked just fine for me.
>
> I believe it doesn't always attempt to read from stdin, only when there's
> something incompatible in the environment.

Ok.

>> I'd be interested in a reproduction recipe if anyone has one...
>
> The BLAH.sh above should work (but I haven't tested it, as I don't have
> the time at the moment).

Yes, the above functions correctly - no hang.

Indeed, I even modified it to write some files in /tmp - so I know the 
script ran.

Max.



More information about the Cygwin-apps mailing list