octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8243] Make octave main wrapper to wait te


From: Michael Goffioul
Subject: [Octave-patch-tracker] [patch #8243] Make octave main wrapper to wait termination of sub-process
Date: Tue, 19 Nov 2013 00:28:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

URL:
  <http://savannah.gnu.org/patch/?8243>

                 Summary: Make octave main wrapper to wait termination of
sub-process
                 Project: GNU Octave
            Submitted by: goffioul
            Submitted on: Tue 19 Nov 2013 12:28:18 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The implementation of execv on Win32 platform is not behaving as expected, and
not like on UNIX platforms. Basically, execv creates a brand new (and
separate) process, then it kills the current process. As such, the current
process is not replaced by the new one.

This makes the octave wrapper to return almost immediately and not wait until
termination of the child process.

The patch uses the approach taken by libtool to implement lt-XXX wrappers on
Win32, using spawnv instead of execv and waiting until process termination.

Additionally, the patch makes sure argv[0] of the child process points to the
actual executable. This allows libtool wrappers to work properly; hence
run-octave also works as expected.

Currently, the patch implements all the changes for MSVC compiler, but can be
easily extended to MinGW as well.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 19 Nov 2013 12:28:18 AM GMT  Name: octave-main-exec  Size: 5kB   By:
goffioul

<http://savannah.gnu.org/patch/download.php?file_id=29655>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8243>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]