[issue2840] hg hangs after ssh connection in pre-serve hook
Simon Röhrl
bugs at mercurial.selenic.com
Wed Jun 1 08:15:09 CDT 2011
New submission from Simon Röhrl <simon_roehrl at web.de>:
I want to use ssh in a bash script called by the pre-serve hook. The ssh
command works fine but after the return of the bash-script the hg serve
hangs. If I leave the ssh command out everything works fine.
I've tested the same script with the precommit hook and it works.
For information:
hgrc:
"[hooks]
precommit = ../testscript.bash
pre-serve = ../testscript.bash"
../testscript.bash:
"
#!/bin/bash
echo "this is a testscript" > logfile
echo "open ssh connection: ..." >> logfile
ssh simon@<ip-address> 'touch test'
echo $? >> logfile
echo "after ssh" >> logfile
exit 0"
I'm using:
Mercurial Distributed SCM (version 1.8.2)
Kernel: 2.6.25.20-0.7-pae
Can anyone explain this behavior? It seems like a bug to me.
----------
messages: 16435
nosy: siki
priority: bug
status: unread
title: hg hangs after ssh connection in pre-serve hook
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2840>
____________________________________________________
More information about the Mercurial-devel
mailing list