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

Re: os.wait in svntest.main.copy_repos?

From: Vlad Georgescu <vgeorgescu_at_gmail.com>
Date: 2007-10-17 20:19:56 CEST

Blair Zajac wrote:
> David Glasser wrote:
>> Do we need os.wait()s on the two svnadmin children in
>> svntest.main.copy_repos, like we do in spawn_command? (Would we just
>> call it twice? Or is there some way to get a pid from the popen3 call
>> to wait on that?)
>
> I think we should wait on it.
>
> However, there is no portable way to get the pid from popen3.
>
> On Unix, we get the os.popen3() ends up using the popen2.Popen3 class which has
> a wait() method, but on Windows, popen2.Popen3 is deleted from the module, so
> you can't ask it for it to wait.

But we could detect the presence of popen2.Popen3 beforehand, or use a
try..except block.

-- 
Vlad
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 17 20:20:15 2007

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