Navigation


Changeset 235:8773740401a5 in freeDiameter for libfreeDiameter/init.c


Ignore:
Timestamp:
Mar 5, 2010, 7:01:48 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Centralized signal handlers management in the library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfreeDiameter/init.c

    r14 r235  
    3636#include "libfD.h"
    3737
    38 int fd_lib_init(void)
     38/* Initialize library variables and threads */
     39int fd_lib_init(int support_signals)
    3940{
    4041        int ret = 0;
     
    4748        }
    4849       
     50        /* Initialize signals if requested */
     51        if (support_signals) {
     52                CHECK_FCT( fd_sig_init() );
     53        }
     54       
    4955        /* Initialize the modules that need it */
    5056        fd_msg_eteid_init();
     
    5359        return 0;
    5460}
     61
     62/* Stop all threads created in the library */
     63void fd_lib_fini(void)
     64{
     65        fd_sess_fini();
     66        fd_sig_fini();
     67}
Note: See TracChangeset for help on using the changeset viewer.