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

Re: [PATCH] Hooks

From: dj <dj_at_shadyvale.net>
Date: 2003-08-29 05:08:44 CEST

Here's a revised version.

Log:

Windows scripts require a valid stdout handle or else 'bad handle'
messages are sent to stderr, cluttering up the error message that is
sent back to the client. This patch sets up a stdout handle pointing to
the null device when hooks are run to remedy the problem.

*** Note that autogen.sh/configure (or gen-make.py on Windows) will need
to be run to generate the null device definitions needed to compile.

* configure.in
  Add a definition for the null device on unixy OS'.

* subversion/libsvn_repos/hooks.c
  (run_hook_cmd): Setup stdout to point to the null device
  rather than leaving it as an invalid handle. Modified error
  handling/cleanup slightly to leave most file closing up to
  the pools.

* svn_private_config.hw
  Add a definition for the null device on Windows.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Aug 29 05:09:41 2003

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

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