This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]