[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

post-commit hook sleeps using ssh

From: Waldemar Gorus <gorusw_at_math.uni-muenster.de>
Date: 2005-07-01 20:32:30 CEST

Hello,

I have a problem with a post-commit hook. Unfortunately I have no
further ideas how to solve this problem. A, inner the hook-script, used
ssh-connection doesnt die as expected, it sleeps for the rest of the day
 . And so the post-commit never finishes.

I am using subversion 1.2.0. Part of the repository are our www-data.
Our html-pages needs to be build by some m4-makros based on these
www-data. Unfortunately this is done by an other user, lets use userb.
So, post-commit opens a connection (Key-authentication) as userb and
executes the script wwwupdate.sh.

post-commit
        --- /usr/.../ssh userb@localhost wwwupdate.sh

wwwupdate.sh
        svn update
        buildwww
        -------------->some shell commands
                        m4-makros

So, what happends now. The script wwwupdate.sh is going to be finished,
always. it doesnt hang or stop anywhere, it goes through. But after the
wwwupdate.sh-script has finished, the ssh-connection doesnt close and I
have no idea why.

These symptoms only occurs when I am executing the m4-makros (only svn
update works) AND subversion calls post-commit.

This complete script works with no trouble when being executed this way

        env - ./post-commit

Also the m4-makro-script doesnt need userinput, I tried things like this

wwwupdate.sh
        svnupdate
        nohup buildwww < /dev/null &

But it still have the same effect. The ssh-connection is not closed.

Workaround:
post-commit
        --- /usr/.../ssh userb@localhost wwwupdate.sh &

and afterwards older ssh-connections are being killed. But, of course,
this seems to me like a dirty patch.

Obviously there is a problem with the m4-macros. But I have no idea
where to search. I have no idea how the conjunction subversion and
buildwww can result in a eversleeping ssh-connection. I hope someone
could give me a hint.

Gruss
Waldemar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 1 20:53:37 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.