search for: sigusr2

Displaying 20 results from an estimated 147 matches for "sigusr2".

Did you mean: sigusr1
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...mon.c nut-2.7.4.dev/clients/upsmon.c --- nut-2.7.4.orig/clients/upsmon.c 2015-12-29 13:08:34.000000000 +0100 +++ nut-2.7.4.dev/clients/upsmon.c 2016-07-01 09:46:21.567766415 +0200 @@ -525,6 +525,18 @@ static int get_var(utype_t *ups, const c numq = 2; } + /* Subcommands for polling SIGUSR1, SIGUSR2 RP */ + if (strcmp(var, "SIGUSR1") == 0) { + query[0] = "SIGUSR1"; + query[1] = ups->upsname; + numq = 2; + } + if (strcmp(var, "SIGUSR2") == 0) { + query[0] = "SIGUSR2"; + query[1] = ups->upsname; + numq = 2; + } + if (!strcmp(var, "stat...
2003 Oct 15
1
rsync freezes on solaris
...FBEE0E8, 1, 60000) = 1 write(1, " ?\0\0\b r s y n c : c".., 67) Err#32 EPIPE Received signal #13, SIGPIPE [ignored] write(2, " r s y n c : w r i t e".., 81) Err#32 EPIPE Received signal #13, SIGPIPE [ignored] sigaction(SIGUSR1, 0xFFBEDAF8, 0xFFBEDB78) = 0 sigaction(SIGUSR2, 0xFFBEDAF8, 0xFFBEDB78) = 0 getpid() = 7970 [7969] Received signal #18, SIGCLD [caught] siginfo: SIGCLD CLD_EXITED pid=7971 status=0x000C waitid(P_ALL, 0, 0xFFBED6D8, WEXITED|WTRAPPED|WNOHANG) = 0 waitid(P_ALL, 0, 0xFFBED6D8, WEXITED|WTRAPPED|WNOHANG) Err#10 ECHILD setcontext(0xFFBED...
2012 May 25
2
[Bug 791] New: SIGUSR2 is undocumented
http://bugzilla.netfilter.org/show_bug.cgi?id=791 Summary: SIGUSR2 is undocumented Product: ulogd Version: SVN (please provide timestamp) Platform: All OS/Version: Debian GNU/Linux Status: NEW Severity: enhancement Priority: P5 Component: ulogd AssignedTo: netfilter-buglog at...
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...us change. Once reported, upsd discards it's record of +the signal. If a further SIGUSR1 is received while a previous SIGUSR1 is +waiting to be polled, it is discarded. Any semantics attached to the signal +are defined by the user, perhaps in a user script called by +linkman:upssched[8]. + +*SIGUSR2*:: +upsd remembers the SIGUSR2 signal on behalf of each UPS. When a +client such as linkman:upsmon[8] polls upsd for UPS status chnges, the SIGUSR2 +is reported as a status change. Once reported, upsd discards it's record of +that signal. If a further SIGUSR2 is received while a previous SI...
2011 May 19
2
Unicorn preload_app and upstart
?Hi, I was wondering if anyone has managed to get the preload_app and SIGUSR2 combination working well with upstart? My issue currently is that when I perform a SIGUSR2 against the master, check everything''s working and close off the old master, upstart then attempts to restart it because the original PID/binary are no longer running. What is the correct way of ha...
2003 Jan 10
5
working on a 2.5.6pre1 release
...t. I can reproduce this on my home redhat 7.3 system too. It appears to be a timing problem because when I do strace -F -f on it the problem goes away. Everything seems to go through normally but then it exits with an exit code of 12, I think because the child receiver process is terminated with a SIGUSR2 which is signal 12 and because the bug that was preventing exit codes from being properly reported from children has now been fixed. It's very hard to debug because it is a timing problem and because it happens after rprintf handling is already shut down in the child process. I suspected that m...
2007 Jan 09
1
DO NOT REPLY [Bug 4327] New: Sudden rsync errors
...\0\0\0\0\0\0\0\0"..., 4092) = -1 EPIPE (Broken pipe) 31556 --- SIGPIPE (Broken pipe) @ 0 (0) --- 31556 write(2, "rsync: writefd_unbuffered failed"..., 82) = 82 31556 write(2, "\n", 1) = 1 31556 rt_sigaction(SIGUSR1, {SIG_IGN}, NULL, 8) = 0 31556 rt_sigaction(SIGUSR2, {SIG_IGN}, NULL, 8) = 0 31556 wait4(31557, 0x7fffea7a594c, WNOHANG, NULL) = 0 31556 getpid() = 31556 31556 kill(31557, SIGUSR1) = 0 31556 kill(31622, SIGUSR1) = 0 31622 <... select resumed> ) = ? ERESTARTNOHAND (To be restarted) 3...
2005 Sep 22
2
repeatable disconnections when rsyncing over ssh
...ild exited) @ 0 (0) --- 28461 read(5, "", 4) = 0 28461 write(2, "rsync: connection unexpectedly closed (579059629 bytes received so far) [receiver]\n", 83) = 8 3 28461 rt_sigaction(SIGUSR1, {SIG_IGN}, {0x80570b0, [USR1], SA_RESTART}, 8) = 0 28461 rt_sigaction(SIGUSR2, {SIG_IGN}, {0x80570e0, [USR2], SA_RESTART}, 8) = 0 28461 waitpid(28446, <unfinished ...> 28445 waitpid(-1, <unfinished ...> 28461 <... waitpid resumed> 0xbfff8fd8, WNOHANG) = -1 ECHILD (No child processes) 28445 <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS...
2017 Mar 28
1
Is a timer a file?
Hi Arnaud, On Wed, 22 Mar 2017, Arnaud Quette wrote: > The technique is very general and is to send SIGUSR1/SIGUSR2 to the upsd daemon.? SIGUSR1 and SIGUSR2 are events just like ONBATT and ONLINE. > The patch runs successfully on my opensuse 13.2 box, and solves my problem. In upssched.conf I now have declarations such as > > ? ?AT SIGUSR1 * CANCEL-TIMER shutdown-timer > > Will m...
2010 Apr 16
2
dovecot2: authcache statistics
Hello, setting auth_cache_size to nonzero enables caching of authentication data. The cache hitrate may be logged by sending SIGUSR2 to dovecot/auth process. Is it possible that dovecot logs statistics on regular intervals ? ( like http://www.postfix.org/postconf.5.html#anvil_status_update_time ) Andreas -- Andreas Schulze Internetdienste | P532 DATEV eG 90329 N?rnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mai...
2017 Mar 21
2
Is a timer a file?
...s://lists.alioth.debian.org/pipermail/nut-upsdev/2016-July/007202.html and a set of patches : https://lists.alioth.debian.org/pipermail/nut-upsdev/2016-July/007203.html https://lists.alioth.debian.org/pipermail/nut-upsdev/2016-July/007204.html The technique is very general and is to send SIGUSR1/SIGUSR2 to the upsd daemon. SIGUSR1 and SIGUSR2 are events just like ONBATT and ONLINE. The patch runs successfully on my opensuse 13.2 box, and solves my problem. In upssched.conf I now have declarations such as AT SIGUSR1 * CANCEL-TIMER shutdown-timer Will my patches be included in NUT? Roger
2002 Sep 24
3
2.5.5-1 rsync hangs
...from Unix(Solaris). rsync forks in this case; the parent process generates the filelisT while a child process does the receiving. (Something like that, at least; I guess it's for deadlock avoidance) At the end, the parent process waves farewell to the remote server, and then does a kill(..., SIGUSR2) on the child pid to tell it to exit. This signal seems to get lost, as suggested above, some moderate percentage of the time. The child process is supposedly waiting for this signal inside msleep(), which calls select() to wait in 20ms bursts. In the cases that the child manages to reach the se...
2011 Aug 16
2
[PATCH] test: Add signal nodefer
...:= socket.o stat.shared-y := stat.o statfs.shared-y := statfs.o diff --git a/usr/klibc/tests/sig-nodefer.c b/usr/klibc/tests/sig-nodefer.c new file mode 100644 index 0000000..e988806 --- /dev/null +++ b/usr/klibc/tests/sig-nodefer.c @@ -0,0 +1,55 @@ +/* + * Expected output of ./sig-defer: + * SIGUSR2: blocked + * SIGTERM: blocked + */ +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/wait.h> + +void handler(int signum) +{ + sigset_t mask; + + sigprocmask(SIG_BLO...
2003 Jan 24
1
[patch] Still a problem with cleanup.c
...09 -0000 @@ -63,11 +63,11 @@ extern int log_got_error; static int inside_cleanup = 0; - if (inside_cleanup != 0) { + if (inside_cleanup > 10) { /* prevent the occasional infinite recursion */ return; } - inside_cleanup = 1; + inside_cleanup++; signal(SIGUSR1, SIG_IGN); signal(SIGUSR2, SIG_IGN); -------------- next part -------------- Index: cleanup.c =================================================================== RCS file: /cvsroot/rsync/cleanup.c,v retrieving revision 1.15 diff -u -r1.15 cleanup.c --- cleanup.c 16 Jan 2003 20:09:31 -0000 1.15 +++ cleanup.c 24 Jan 2003 01:2...
2009 Nov 18
1
cache auth clear
Hello: Have found probably auth cache clearing is not working well. I get this log after issuing several SIGUSR2 and SIGHUP from command line: Nov 18 13:56:26 dovecot: Info: Dovecot v1.2.6 starting up Nov 18 13:56:33 auth(default): Info: Authentication cache hits 5/14 (35%) Nov 18 13:56:33 auth(default): Info: Authentication cache inserts: positive: 9 1213B, negative: 0 0B Nov 18 13:57:40 auth(default): Info...
2003 Jan 03
1
[Fwd: Re: rsync windows -> unix still hanging :(]
...io_set_error_fd(error_pipe[0]); --- 423,429 ---- close(error_pipe[1]); if (f_in != f_out) close(f_in); ! io_start_buffering_out(f_out); io_set_error_fd(error_pipe[0]); *************** *** 434,440 **** write_int(f_out, -1); } io_flush(); ! kill(pid, SIGUSR2); wait_process(pid, &status); return status; --- 436,442 ---- write_int(f_out, -1); } io_flush(); ! msleep(100); kill(pid, SIGUSR2); wait_process(pid, &status); return status; *************** *** 476,481 **** --- 478,484 ---- } }...
2005 Jun 14
2
1.0-test73
...keep it - When auth workers died they leaked file descriptors in dovecot-auth - Auth workers were leaking memory for each request - Make MySQL connect abort in 10 seconds if it can't connect - 32bit UID/GIDs were truncated to 31bit value - dovecot-auth reports cache hits and misses on SIGUSR2 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050615/6275fb0f/attachment-0001.bin>
2006 Sep 22
3
Mongrel spinning on read_multipart
On Zed''s suggestion, I caught two new spinning mongrels and sent a SIGUSR2. The code appears to be stuck in read_multipart for both processes: # kill -USR2 6109 ** USR2 signal received. Thu Sep 21 14:55:39 EDT 2006: Reaping 1 threads for slow workers because of ''shutdown'' Thread #<Thread:0x419d7ce0 run> is too old, killing. Waiting for 1 requests...
2002 Jun 18
1
remote rsync process dies, local hangs
...l(0xFFBEF540, 2, 60000) = 1 fd=6 ev=POLLRDNORM rev=POLLRDNORM fd=8 ev=POLLRDNORM rev=0 read(6, "01\0\0\0", 4) = 4 close(6) = 0 poll(0xFFBEE938, 2, 60000) = 1 fd=1 ev=POLLOUT rev=POLLOUT fd=8 ev=POLLRDNORM rev=0 write(1, "04\0\007FFFFFFFF", 8) = 8 kill(18231, SIGUSR2) = 0 waitid(P_PID, 18231, 0xFFBEFB08, WEXITED|WTRAPPED|WNOHANG) = 0 Received signal #18, SIGCLD, in poll() [caught] siginfo: SIGCLD CLD_EXITED pid=18231 status=0x0000 poll(0xFFBEFAE8, 0, 20) Err#4 EINTR waitid(P_ALL, 0, 0xFFBEF620, WEXITED|WTRAPPED|WNOHANG) = 0 waitid(P_ALL, 0, 0x...
2016 Aug 02
1
[R] Fwd: Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'
...hat you are trying to do you might get some help with that. Best, luke On Tue, 2 Aug 2016, Ming Li wrote: > Thanks luke.?cc hawq dev team. > I sent this email to?R-devel 2 days before forwarding it to R-help, but no > one reply. > > Is there any workaround? When were?SIGUSR1 and SIGUSR2?sent in R? Or maybe > we should move all operations not too emergency out of signal handler? > > Thanks. > > > On Tue, Aug 2, 2016 at 4:02 AM, <luke-tierney at uiowa.edu> wrote: > The handlers for SIGUSR1 and SIGUSR2 are really intended as an > emergen...