A brief file description. More...
#include "libts.h"
#include "signals.h"
#include "ProxyConfig.h"
#include "P_EventSystem.h"
#include "StatSystem.h"
#include "proxy/Main.h"
#include "ink_stack_trace.h"
Go to the source code of this file.
Data Structures | |
class | SignalContinuation |
class | TrackerContinuation |
Typedefs | |
typedef void(* | SigActionFunc_t )(int sig, siginfo_t *t, void *f) |
Functions | |
static void | interrupt_handler (int sig) |
static void | signal_handler (int sig, siginfo_t *t, void *c) |
static void | child_signal_handler (int sig) |
static void | set_signal (int signal, SigActionFunc_t action_func) |
static void | check_signal (int signal, SigActionFunc_t action_func) |
void | check_signals () |
void | init_signals (bool do_stackdump) |
int | init_tracker (const char *config_var, RecDataT, RecData data, void *) |
void | init_signals2 () |
void | init_daemon_signals () |
Variables | |
int | exited_children = 0 |
static volatile int | sigusr1_received = 0 |
int | fastmemtotal |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file signals.cc.
typedef void(* SigActionFunc_t)(int sig, siginfo_t *t, void *f) |
Definition at line 44 of file signals.cc.
static void check_signal | ( | int | signal, | |
SigActionFunc_t | action_func | |||
) | [static] |
Definition at line 264 of file signals.cc.
References ink_release_assert.
Referenced by check_signals().
void check_signals | ( | ) |
Definition at line 297 of file signals.cc.
References check_signal(), interrupt_handler(), and signal_handler().
static void child_signal_handler | ( | int | sig | ) | [static] |
Definition at line 231 of file signals.cc.
References exited_children.
Referenced by init_daemon_signals().
void init_daemon_signals | ( | ) |
Definition at line 406 of file signals.cc.
References child_signal_handler(), and ink_assert.
void init_signals | ( | bool | do_stackdump | ) |
Definition at line 325 of file signals.cc.
References ink_thread_create(), ink_thread_sigsetmask(), interrupt_handler(), set_signal(), and signal_handler().
Referenced by init_system().
void init_signals2 | ( | ) |
Definition at line 395 of file signals.cc.
References ET_CALL, eventProcessor, HRTIME_MSECOND, init_tracker(), RecData::rec_int, REC_RegisterConfigUpdateFunc, RECD_INT, and EventProcessor::schedule_every().
Referenced by main().
Definition at line 373 of file signals.cc.
References Action::cancel(), Debug, ET_CALL, eventProcessor, HRTIME_SECONDS, REC_ConfigReadInteger(), RecData::rec_int, and EventProcessor::schedule_every().
Referenced by init_signals2().
static void interrupt_handler | ( | int | sig | ) | [static] |
Definition at line 139 of file signals.cc.
References shutdown_system().
Referenced by check_signals(), and init_signals().
static void set_signal | ( | int | signal, | |
SigActionFunc_t | action_func | |||
) | [static] |
Definition at line 244 of file signals.cc.
References ink_release_assert.
Referenced by init_signals().
static void signal_handler | ( | int | sig, | |
siginfo_t * | t, | |||
void * | c | |||
) | [static] |
Definition at line 152 of file signals.cc.
References ATS_UNUSED_RETURN, ink_stack_trace_dump(), shutdown_system(), and sigusr1_received.
Referenced by check_signals(), and init_signals().
int exited_children = 0 |
Definition at line 49 of file signals.cc.
Referenced by child_signal_handler().
int fastmemtotal |
Definition at line 134 of file ink_queue.cc.
Referenced by ink_freelist_new(), and SignalContinuation::periodic().
volatile int sigusr1_received = 0 [static] |
Definition at line 51 of file signals.cc.
Referenced by SignalContinuation::periodic(), and signal_handler().