Skip to content
Snippets Groups Projects
  • Mike Bradeen's avatar
    9e71f7fe
    taskprocessor.c: Prevent crash on graceful shutdown · 9e71f7fe
    Mike Bradeen authored
    When tps_shutdown is called as part of the cleanup process there is a
    chance that one of the taskprocessors that references the
    tps_singletons object is still running.  The change is to allow for
    tps_shutdown to check tps_singleton's container count and give the
    running taskprocessors a chance to finish.  If after
    AST_TASKPROCESSOR_SHUTDOWN_MAX_WAIT (10) seconds there are still
    container references we shutdown anyway as this is most likely a bug
    due to a taskprocessor not being unreferenced.
    
    ASTERISK-29365
    
    Change-Id: Ia932fc003d316389b9c4fd15ad6594458c9727f1
    9e71f7fe
    History
    taskprocessor.c: Prevent crash on graceful shutdown
    Mike Bradeen authored
    When tps_shutdown is called as part of the cleanup process there is a
    chance that one of the taskprocessors that references the
    tps_singletons object is still running.  The change is to allow for
    tps_shutdown to check tps_singleton's container count and give the
    running taskprocessors a chance to finish.  If after
    AST_TASKPROCESSOR_SHUTDOWN_MAX_WAIT (10) seconds there are still
    container references we shutdown anyway as this is most likely a bug
    due to a taskprocessor not being unreferenced.
    
    ASTERISK-29365
    
    Change-Id: Ia932fc003d316389b9c4fd15ad6594458c9727f1