apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Pilch-Bisson <ke...@pilch-bisson.net>
Subject pipe hanging on win32
Date Mon, 30 Sep 2002 22:51:24 GMT
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mime
View raw message