Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Weirdness with port-update hook and local push

From: Daniel Barkalow <hidden>
Date: 2016-06-15 22:42:14

On Mon, 5 Dec 2005, Johannes Schindelin wrote:
Hi,

On Mon, 5 Dec 2005, Daniel Barkalow wrote:
quoted
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*
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help