#include <errno.h>#include <sys/types.h>#include <signal.h>#include "../../mem/shm_mem.h"#include "../../dprint.h"#include "../../timer.h"#include "../../locking.h"#include "kill.h"

Go to the source code of this file.
Defines | |
| #define | lock() lock_get(kill_lock) |
| #define | unlock() lock_release(kill_lock) |
Functions | |
| void | destroy_kill (void) |
| int | initialize_kill (void) |
| int | schedule_to_kill (int pid) |
| static void | timer_routine (unsigned int ticks, void *attr) |
Variables | |
| static struct timer_list | kill_list |
| static gen_lock_t * | kill_lock = NULL |
Definition at line 62 of file kill.c.
Referenced by check_against_rule_list(), check_and_split_time_list(), create_bl_head(), delete_phtable(), delete_shtable(), destroy_black_lists(), destroy_phtable(), destroy_shtable(), get_sphere(), get_stored_info(), get_subs_dialog(), get_wi_notify_body(), imc_add_room(), imc_del_room(), imc_get_room(), imc_htable_destroy(), imc_htable_init(), imc_mi_list_rooms(), imc_release_room(), insert_phtable(), insert_shtable(), lock_hash(), mi_print_blacklists(), new_phtable(), new_shtable(), refresh_watcher(), rls_handle_subscribe(), schedule_to_kill(), set_1timer(), set_timer(), timer_routine(), timer_send_notify(), unlink_timers(), update_db_subs(), update_phtable(), update_pw_dialogs(), update_rlsubs(), and update_shtable().
| #define unlock | ( | ) | lock_release(kill_lock) |
Definition at line 64 of file kill.c.
Referenced by check_and_split_time_list(), schedule_to_kill(), set_1timer(), set_timer(), timer_routine(), unlink_timers(), and unlock_hash().
| void destroy_kill | ( | void | ) |
Definition at line 159 of file kill.c.
References kill_lock, and time_to_kill.
Referenced by exec_shutdown().
| int initialize_kill | ( | void | ) |
Definition at line 135 of file kill.c.
References timer_list::first_tl, kill_list, kill_lock, timer_list::last_tl, LM_DBG, LM_ERR, timer_link::next_tl, timer_link::prev_tl, register_timer(), timer_link::time_out, time_to_kill, and timer_routine().
Referenced by mod_init().
| int schedule_to_kill | ( | int | pid | ) |
Definition at line 115 of file kill.c.
References get_ticks(), kill_list, timer_list::last_tl, LM_ERR, lock, timer_link::next_tl, timer_link::pid, timer_link::prev_tl, shm_malloc(), timer_link::time_out, time_to_kill, and unlock.
| static void timer_routine | ( | unsigned int | ticks, | |
| void * | attr | |||
| ) | [static] |
Definition at line 71 of file kill.c.
References timer_list::first_tl, kill_list, timer_list::last_tl, LM_DBG, lock, timer_link::next_tl, timer_link::pid, timer_link::prev_tl, shm_free, timer_link::time_out, and unlock.
Referenced by initialize_kill(), and mod_init().
struct timer_list kill_list [static] |
Definition at line 58 of file kill.c.
Referenced by initialize_kill(), schedule_to_kill(), and timer_routine().
gen_lock_t* kill_lock = NULL [static] |
1.5.6