search for: sigterm_handl

Displaying 10 results from an estimated 10 matches for "sigterm_handl".

Did you mean: sigterm_handler
2002 Sep 05
7
sshd and SIGKILL
On command: #kill -9 `cat /var/run/sshd.pid` sshd leave pid file ! sshd.c code: =============== .... /* * Arrange to restart on SIGHUP. The handler needs * listen_sock. */ signal(SIGHUP, sighup_handler); signal(SIGTERM, sigterm_handler); signal(SIGQUIT, sigterm_handler); .... =============== Missing line is : signal(SIGKILL, sigterm_handler);
2001 Jun 22
1
PATCH: pidfile/sigterm race
...,6 +857,19 @@ if (!num_listen_socks) fatal("Cannot bind any address."); + if (options.protocol & SSH_PROTO_1) + generate_ephemeral_server_key(); + + /* Arrange to restart on SIGHUP. The handler needs listen_sock. */ + signal(SIGHUP, sighup_handler); + + signal(SIGTERM, sigterm_handler); + signal(SIGQUIT, sigterm_handler); + + /* Arrange SIGCHLD to be caught. */ + signal(SIGCHLD, main_sigchld_handler); + + /* Write out the pid file after the sigterm handler is setup */ if (!debug_flag) { /* * Record our pid in /var/run/sshd.pid to make it @@ -871,17 +884,6 @@...
2020 Jun 19
2
SegFault when using TunnelServer=yes
...at net.c:510         sighup = {signum = 1, cb = 0x555555560480 <sighup_handler>, data = 0x7fffffffe1a0, node = {next = 0x7fffffffe2a8, prev = 0x0,             parent = 0x7fffffffe2a8, left = 0x0, right = 0x0, data = 0x7fffffffe1a0}}         sigterm = {signum = 15, cb = 0x55555555f900 <sigterm_handler>, data = 0x7fffffffe1f0, node = {next = 0x0, prev = 0x7fffffffe2f8,             parent = 0x7fffffffe2f8, left = 0x0, right = 0x0, data = 0x7fffffffe1f0}}         sigquit = {signum = 3, cb = 0x55555555f900 <sigterm_handler>, data = 0x7fffffffe240, node = {next = 0x7fffffffe2f8,     ...
2020 Jul 27
3
SegFault when using TunnelServer=yes
...  sighup = {signum = 1, cb = 0x555555560480 <sighup_handler>, > data = 0x7fffffffe1a0, node = {next = 0x7fffffffe2a8, prev = 0x0, >             parent = 0x7fffffffe2a8, left = 0x0, right = 0x0, data = > 0x7fffffffe1a0}} >         sigterm = {signum = 15, cb = 0x55555555f900 <sigterm_handler>, > data = 0x7fffffffe1f0, node = {next = 0x0, prev = 0x7fffffffe2f8, >             parent = 0x7fffffffe2f8, left = 0x0, right = 0x0, data = > 0x7fffffffe1f0}} >         sigquit = {signum = 3, cb = 0x55555555f900 <sigterm_handler>, > data = 0x7fffffffe240, node = {next...
2020 Jul 27
0
SegFault when using TunnelServer=yes
...at net.c:510         sighup = {signum = 1, cb = 0x555555560480 <sighup_handler>, data = 0x7fffffffe1a0, node = {next = 0x7fffffffe2a8, prev = 0x0,             parent = 0x7fffffffe2a8, left = 0x0, right = 0x0, data = 0x7fffffffe1a0}}         sigterm = {signum = 15, cb = 0x55555555f900 <sigterm_handler>, data = 0x7fffffffe1f0, node = {next = 0x0, prev = 0x7fffffffe2f8,             parent = 0x7fffffffe2f8, left = 0x0, right = 0x0, data = 0x7fffffffe1f0}}         sigquit = {signum = 3, cb = 0x55555555f900 <sigterm_handler>, data = 0x7fffffffe240, node = {next = 0x7fffffffe2f8,     ...
2020 Jul 28
0
SegFault when using TunnelServer=yes
...  sighup = {signum = 1, cb = 0x555555560480 <sighup_handler>, > data = 0x7fffffffe1a0, node = {next = 0x7fffffffe2a8, prev = 0x0, >             parent = 0x7fffffffe2a8, left = 0x0, right = 0x0, data = > 0x7fffffffe1a0}} >         sigterm = {signum = 15, cb = 0x55555555f900 <sigterm_handler>, > data = 0x7fffffffe1f0, node = {next = 0x0, prev = 0x7fffffffe2f8, >             parent = 0x7fffffffe2f8, left = 0x0, right = 0x0, data = > 0x7fffffffe1f0}} >         sigquit = {signum = 3, cb = 0x55555555f900 <sigterm_handler>, > data = 0x7fffffffe240, node = {next...
2000 Jul 09
0
OpenSSH 2.1.1p2: /etc/nologin handling and related stuff
...t(254); } -#endif /* USE_PAM */ #ifndef HAVE_OSF_SIA /* Set login name in the kernel. */ diff -ruw -x configure ../dist/sshd.c ./sshd.c --- ../dist/sshd.c Wed Jun 28 07:22:42 2000 +++ ./sshd.c Sun Jul 9 19:23:29 2000 @@ -746,6 +746,10 @@ signal(SIGHUP, sighup_handler); signal(SIGTERM, sigterm_handler); signal(SIGQUIT, sigterm_handler); +#ifdef SIGDANGER + /* Don't die on AIX when the machine runs low on memory */ + signal(SIGDANGER, SIG_IGN); +#endif /* Arrange SIGCHLD to be caught. */ signal(SIGCHLD, main_sigchld_handler);
2007 Jul 21
2
tincctl patches
(Second try to send this. I wonder if the first one gotten eaten by a spam filter; I'll link to patches instead of attaching them.) Here are the tincctl patches I've been working on. They apply to http://www.tinc-vpn.org/svn/tinc/branches/1.1@1545. I intend to commit them once the crypto stuff's fixed. Since they're basically done, I'm emailing them now for review and in case
1999 Oct 20
3
patch for tinc-0.3
Hi tinc list members, There were some problems with Ivo's email adresses (both zarq@iname.com and zarq@spark.icicle.dhs.org) so I resent the stuff to the mailling list. ============================================= Hi Ivo, Hier is een oplossing voor een bugje in flush_queue(), en ook wat andere troepjes zoals een tincd scheduler. Dit werkt wat beter, omdat de
2013 Oct 08
57
[Bug 2158] New: Race condition in receiving SIGTERM
...Hardware: All OS: Linux Status: NEW Severity: minor Priority: P5 Component: sshd Assignee: unassigned-bugs at mindrot.org Reporter: ben.maurer at gmail.com To handle sigterm, openssh uses this handler: static void sigterm_handler(int sig) { received_sigterm = sig; } in the select loop, it checks this flag ret = select(maxfd+1, fdset, NULL, NULL, NULL); ... if (received_sigterm) { select() will return -1 with an EINTR when it gets a signal. Therefore, in most cases this successfully shuts down the process. However,...