Changeset 3642


Ignore:
Timestamp:
May 18, 2008, 2:11:27 PM (17 years ago)
Author:
bird
Message:

Fixed an init bug

Location:
trunk/libc/src/kNIX
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/src/kNIX/b_initterm.c

    r2942 r3642  
    131131     * Only initialize it once.
    132132     *
    133      * We currently IGNORE the posibility that two thread might be racing here and
     133     * We currently IGNORE the possibility that two thread might be racing here and
    134134     * the loser begin able to call into LIBC while it's begin initialized.
    135135     */
     
    139139        rc = __libc_back_init(hmod, pvOS, fFlags);
    140140    else
     141        rc = 0;
     142#ifdef __OS2__
     143    /* Install the 16-bit signal handler. */
     144    if (fFlags & __LIBC_INIT_FLAGS_PROCESS)
    141145    {
    142 #ifdef __OS2__
    143         /* Install the 16-bit signal handler. */
    144         if (fFlags & __LIBC_INIT_FLAGS_PROCESS)
    145             rc = __libc_back_signalInitExe();
    146         else
     146        rc = __libc_back_signalInitExe();
     147        __libc_spmInheritFree();
     148    }
    147149#endif
    148             rc = 0;
    149 
    150     }
     150
    151151    if (!rc)
    152152        LIBCLOG_RETURN_INT(0);
  • trunk/libc/src/kNIX/os2/__init.c

    r2929 r3642  
     1!THIS FILE IS DEAD!
    12/*
    23    Application low-level initialization routine.
Note: See TracChangeset for help on using the changeset viewer.