Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1411

thread_unix and thread_windows inconsistency as for axutil_thread_exit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • util
    • Unix

    Description

      In thread_unix.c, axutil_thread_exit :

      • sleep until thread is detached (try_exit is only set to true by axutil_thread_detach)
      • call pthread_kill with 0 as second parameter which has no effect on thread (only test possible errors)
      • call axutil_thread_join which doesn't work on detached thread but return code isn't tested

      In thread_windows.c, axutil_thread_exit simply call TerminateThread which kills the thread (not cleany by the way) before calling axutil_thread_join (try_exit is not used).

      Attachments

        1. util.patch
          6 kB
          Francois Mireaux

        Activity

          People

            Unassigned Unassigned
            mireaux Francois Mireaux
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: