~vojtech-horky/helenos/coastline-qemu

« back to all changes in this revision

Viewing changes to gcc/pex-helenos.c

  • Committer: Vojtech Horky
  • Date: 2017-06-13 13:25:52 UTC
  • mfrom: (104.1.20 coastline)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170613132552-xtolbxpio874bvbg
MergeĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    int toclose ATTRIBUTE_UNUSED,
84
84
    const char **errmsg, int *err)
85
85
{
86
 
        int *files[4];
87
 
        files[0] = ∈
88
 
        files[1] = &out;
89
 
        files[2] = &errdes;
90
 
        files[3] = NULL;
91
 
        
92
86
        struct pex_helenos *pex_helenos = (struct pex_helenos *) obj->sysdep;
93
87
 
94
88
        /* Prepare space for the task_wait structure. */
102
96
        // FIXME: decide on paths
103
97
        snprintf(full_path, 1023, "/app/%s", executable);
104
98
        int rc = task_spawnvf(&this_task->task_id, &this_task->task_wait,
105
 
                full_path, argv, files);
 
99
                full_path, argv, in, out, errdes);
106
100
        
107
101
        if (rc != 0) {
108
102
                *err = rc;