Changeset 985e0f15 in mainline for uspace/lib/c/generic/dlfcn.c


Ignore:
Timestamp:
2019-05-18T21:42:02Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
87bc11f
Parents:
1e8b633
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-17 13:04:30)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-05-18 21:42:02)
Message:

Removing exit() from lib rtld

Several functions in the library rtld called
exit() from stdlib when an error occured. This
commit removes those calls and replace it with a
proper failure response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dlfcn.c

    r1e8b633 r985e0f15  
    3535 */
    3636
     37#include <errno.h>
    3738#include <stdio.h>
    3839#include <stdlib.h>
     
    5354        if (m == NULL) {
    5455                m = module_load(runtime_env, path, mlf_local);
    55                 module_load_deps(m, mlf_local);
     56                if (module_load_deps(m, mlf_local) != EOK) {
     57                        return NULL;
     58                }
     59
    5660                /* Now relocate. */
    5761                module_process_relocs(m);
Note: See TracChangeset for help on using the changeset viewer.