Re: Weirdness with port-update hook and local push
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Dec 6, 2005, 01:12 UTC
- Message-ID
- <Pine.LNX.4.64.0512051945330.25300@iabervon.org>
- In-Reply-To
- <Pine.LNX.4.63.0512052318290.3406@wbgn013.biozentrum.uni-wuerzburg.de>
On Mon, 5 Dec 2005, Johannes Schindelin wrote:
Show 9 quoted lines
> Hi, > > On Mon, 5 Dec 2005, Daniel Barkalow wrote: > > > I think it's an environment thing of some sort, most likely, but it can't > > be the user; nothing's setuid and I'm only one user. > > Can you insert "env > /tmp/env.$$.out", execute both without and with ssh, > and compare?
Actually, "ls -l /proc/$$/fd" shows that stdin and stdout are sockets with ssh, pipes with local, and ttys when just running the script.
The hooks probably ought to be run with something different for stdin/stdout than the connection to the source of the data. /dev/null, maybe? Or a log file? Maybe dup stderr, which still seems to be going to the pusher's terminal?
-Daniel *This .sig left intentionally blank*