Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #345 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Process don't work with GDC

Reported by: larsivi Assigned to: jcomellas
Priority: critical Milestone: 0.97 RC 1
Component: Core Functionality Version:
Keywords: GDC Cc:

Description (Last modified by larsivi)

The following snippet works fine with DMD on linux, but not GDC 0.23. It exits by not getting Process.Result.Exit.

import tango.sys.Process;
import tango.io.Stdout;

int main()
{
    auto svnco = new Process("svn co http://svn.dsource.org/projects/tango/trunk wctango", null);
    svnco.execute();
    auto result = svnco.wait();
    if (result.reason != Process.Result.Exit) {
        Stderr("Was not able to check out working copy from repository").newline;
        return 1;
    }

    return 0;
}

Change History

03/19/07 10:26:43 changed by larsivi

Built using

rebuild -full -clean -dc=gdc-posix-tango gdcprocesstest.d

03/19/07 10:29:42 changed by larsivi

  • description changed.

04/03/07 22:11:32 changed by jcomellas

  • status changed from new to closed.
  • resolution set to fixed.

Already fixed in SVN. When the child process' environment was not set, the value I was passing to execve() was incorrect.