Changeset 341140c in mainline


Ignore:
Timestamp:
2007-06-13T20:14:23Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4680ef5
Parents:
de7663f
Message:

Fix a bug in userspace thread_create() that confused success of the
syscall with failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/generic/thread.c

    rde7663f r341140c  
    107107       
    108108        uarg->uspace_thread_function(uarg->uspace_thread_arg);
     109        /* XXX: we cannot free the userspace stack while running on it */
    109110        free(uarg->uspace_stack);
    110111        free(uarg);
     
    155156            (sysarg_t) tid);
    156157       
    157         if (!rc) {
     158        if (rc) {
    158159                /*
    159160                 * Failed to create a new thread.
Note: See TracChangeset for help on using the changeset viewer.