search for: received_sigterm

Displaying 3 results from an estimated 3 matches for "received_sigterm".

2012 Dec 04
2
OpenSSH warnings on FreeBSD
...CS file: /cvs/openssh/serverloop.c,v retrieving revision 1.172 diff -u -p -r1.172 serverloop.c --- serverloop.c 2 Dec 2012 22:50:55 -0000 1.172 +++ serverloop.c 4 Dec 2012 11:46:33 -0000 @@ -708,7 +708,7 @@ server_loop(pid_t pid, int fdin_arg, int &nalloc, max_time_milliseconds); if (received_sigterm) { - logit("Exiting on signal %d", received_sigterm); + logit("Exiting on signal %d", (int)received_sigterm); /* Clean up sessions, utmp, etc. */ cleanup_exit(255); } @@ -858,7 +858,7 @@ server_loop2(Authctxt *authctxt) &nalloc, 0); if (received_sig...
2013 Oct 08
57
[Bug 2158] New: Race condition in receiving SIGTERM
...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, if SSH were executing something o...
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up a tunnel using ssh, e.g.: ssh -f -o Tunnel=ethernet <server_ip> true I was wondering if there's a way to subsequently acquire the names of the local and remote tun/tap interfaces (e.g., using the default "-w any:any") for subsequent automatic tunnel configuration, e.g.: ip link set $TapDev up ip link set