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

Re: POpen3/POpen4 on Win32

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-01-23 22:26:19 CET

On Tue, Jan 22, 2002 at 10:56:02AM -0600, cmpilato@collab.net wrote:
> "Bill Tutt" <rassilon@lyra.org> writes:
>...
> > Do our test cases need poll() on POpen3/POpen4, or is just retrieving
> > the exit code good enough? If we need something more flexible like
> > POpen3/POpen4, maybe I can code up a Python version of the code that
> > does the required footwork on Win32.
>
> My only real concern is SEGFAULT detection. To that extent, whatever
> works. Subversion doesn't make a habit of silently failing about much
> of anything, so we can always check stderr for non-fatal failures.

Read the docco for waitpid(). You can get back information on whether the
program exited normally or not. That should be what you're looking for.

Python has the function for this, such as os.WIFEXITED(status)

Regarding pipes and popen2.py and whatnot... we can definitely fix up the
run_svn() command to Do The Right Thing.

On Windows, there is a "win32popenmodule" (or somesuch name). It provides
much of the same pipe semantics, so we could use that to spawn/run an SVN
client.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:58 2006

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.