Skip to content
Snippets Groups Projects
  • Robert Schmidt's avatar
    a6486909
    Reimplement itti_wait_tasks_end() to allow custom wait handlers · a6486909
    Robert Schmidt authored
    In the UE, we wish to handle ^C in the UE to send a message before
    terminating, so we allow custom wait handlers to implement such
    functionality. Use itti_wait_tasks_unblock() to unblock
    itti_wait_tasks_end().
    
    Also, implement itti_wait_tasks_end() using semaphores, as signals are
    not async-signal-safe (and therefore should not be used in a signal
    handler).
    a6486909
    History
    Reimplement itti_wait_tasks_end() to allow custom wait handlers
    Robert Schmidt authored
    In the UE, we wish to handle ^C in the UE to send a message before
    terminating, so we allow custom wait handlers to implement such
    functionality. Use itti_wait_tasks_unblock() to unblock
    itti_wait_tasks_end().
    
    Also, implement itti_wait_tasks_end() using semaphores, as signals are
    not async-signal-safe (and therefore should not be used in a signal
    handler).