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

Re: Log length limit on Windows? Problem with using notepad as log editor?

From: Tom Rawson <trawson_at_clayst.com>
Date: 2004-12-02 23:03:07 CET

On 2 Dec 2004 Brass Tilde wrote:

> How did you start notepad? Some windows executables return control
> to the calling process immediately, rather than forcing them to wait
> until the program completes. Notepad is one of these (at least from
> a DOS prompt).

That behavior is because it's a DOS prompt, not because it's Notepad.
The issue is in the calling program -- in this case svn. The type of
app and the API call used to start it will determine what happens. I
believe the rules go like this though my memory is slightly rusty:
From a Win32 console app (that's what svn.exe is on Windows) ...

    * If you use ShellExecute to start another console app or a DOS
    app that app runs in the same session and the API blocks (does not
    return) until the app exits.

    * If you use ShellExecute to start a Windows app like (Notepad)
    that app runs separately, and the API does not block and will
    return as soon as the app is launched. However I believe you can
    wait for the app to finish with WaitForSingleObject if you wish.

    * If you use CreateProcess you can control the behavior however
    you want, but the use is much more complex.

The whole area of starting processes and waiting for them is a mess in
Windows, but with some work you can usually make it do what you want.

--
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 3 00:01:31 2004

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

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