Subversion Repositories HelenOS

Rev

Rev 4265 | Rev 4491 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4265 Rev 4331
Line 229... Line 229...
229
static int loader_load(ipc_callid_t rid, ipc_call_t *request)
229
static int loader_load(ipc_callid_t rid, ipc_call_t *request)
230
{
230
{
231
    int rc;
231
    int rc;
232
   
232
   
233
    rc = elf_load_file(pathname, 0, &prog_info);
233
    rc = elf_load_file(pathname, 0, &prog_info);
234
    if (rc < 0) {
234
    if (rc != EE_OK) {
235
        DPRINTF("Failed to load executable '%s'.\n", pathname);
235
        DPRINTF("Failed to load executable '%s'.\n", pathname);
236
        ipc_answer_0(rid, EINVAL);
236
        ipc_answer_0(rid, EINVAL);
237
        return 1;
237
        return 1;
238
    }
238
    }
239
   
239
   
Line 248... Line 248...
248
        ipc_answer_0(rid, EOK);
248
        ipc_answer_0(rid, EOK);
249
        return 0;
249
        return 0;
250
    }
250
    }
251
   
251
   
252
    rc = elf_load_file(prog_info.interp, 0, &interp_info);
252
    rc = elf_load_file(prog_info.interp, 0, &interp_info);
253
    if (rc < 0) {
253
    if (rc != EE_OK) {
254
        DPRINTF("Failed to load interpreter '%s.'\n",
254
        DPRINTF("Failed to load interpreter '%s.'\n",
255
            prog_info.interp);
255
            prog_info.interp);
256
        ipc_answer_0(rid, EINVAL);
256
        ipc_answer_0(rid, EINVAL);
257
        return 1;
257
        return 1;
258
    }
258
    }