Changeset 20f1597 in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2009-03-02T22:13:30Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
561db3f
Parents:
16da5f8e
Message:

Task names should only contain base names of commands. Also add 'boot:' prefix for binaries loaded by the kernel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r16da5f8e r20f1597  
    271271static void loader_run(ipc_callid_t rid, ipc_call_t *request)
    272272{
     273        const char *cp;
     274
    273275        /* Set the task name. */
    274         task_set_name(pathname);
     276        cp = strrchr(pathname, '/');
     277        cp = (cp == NULL) ? pathname : (cp + 1);
     278        task_set_name(cp);
    275279
    276280        if (is_dyn_linked == true) {
Note: See TracChangeset for help on using the changeset viewer.