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


Ignore:
Timestamp:
2019-05-18T21:42:02Z (5 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/rtld/rtld.c

    r1e8b633 r985e0f15  
    125125
    126126        DPRINTF("Load all program dependencies\n");
    127         module_load_deps(prog, 0);
     127        errno_t rc = module_load_deps(prog, 0);
     128        if (rc != EOK) {
     129                return rc;
     130        }
    128131
    129132        /* Compute static TLS size */
Note: See TracChangeset for help on using the changeset viewer.