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

pipe hanging on win32

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2002-10-01 00:51:24 CEST

I've attached a short example of what I am trying to do on in svn for the
benefit of any apr folks who may be able to look at this.

Basically I'm calling the run_pre_revprop_change_hook(), and it's hanging in
apr_file_flush(...) specifically in FlushFileBuffers it seems.

The hook script (shown below), is hanging in getc().

Any ideas why this isn't working?

Note that log.txt never includes anything from stdin.

int main(int argc, char **argv)
{
        std::ofstream file("log.txt");
        file << "Repos is: " << argv[1] << std::endl;
        file << "Rev is: " << argv[2] << std::endl;
        file << "Propname is: " << argv[3] << std::endl;
        while (!std::cin.eof()) {
                std::string s;
                std::cin >> s;
                file << s << std::endl;
        }
        file << std::ends;
        file.close();
        return 0;
}

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson
kevin@pilch-bisson.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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

Received on Tue Oct 1 00:52:01 2002

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.