search for: sigusr1_handler

Displaying 9 results from an estimated 9 matches for "sigusr1_handler".

2002 Apr 12
0
Problem with child process exit status.
...Apr 8 13:37:27 2002 *************** *** 37,42 **** --- 37,43 ---- while (waitpid(pid, status, WNOHANG) == 0) { msleep(20); io_flush(); + *status = 0; } /* TODO: If the child exited on a signal, then log an *************** *** 846,852 **** signal(SIGUSR1, sigusr1_handler); signal(SIGUSR2, sigusr2_handler); ! signal(SIGCHLD, sigchld_handler); #ifdef MAINTAINER_MODE signal(SIGSEGV, rsync_panic_handler); signal(SIGFPE, rsync_panic_handler); --- 847,853 ---- signal(SIGUSR1, sigusr1_handler); signal(SIGUSR2, sigusr2_handler); ! /* signal(SIGCHLD, s...
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...; diff -rup nut-2.7.4.orig/server/upsd.c nut-2.7.4.dev/server/upsd.c --- nut-2.7.4.orig/server/upsd.c 2015-12-29 13:08:34.000000000 +0100 +++ nut-2.7.4.dev/server/upsd.c 2016-07-01 09:56:59.589903339 +0200 @@ -848,6 +848,32 @@ static void set_exit_flag(int sig) exit_flag = sig; } +static void sigusr1_handler(int sig) +{ + /* SIGUSR1 signals are passed on to every known UPS RP */ + upstype_t *u; + + for (u = firstups; u; u = u->next) { + if ( u->sigusr1 < MAX_SIGUSR1 ) { + (u->sigusr1)++; + upsdebugx(1, "%s: UPS %s, sigusr1 up to %d", __func__, u->name, u->sigusr1); +...
2003 Jun 27
5
PATCH/RFC: Another stab at the Cygwin hang problem
...ler(int UNUSED(val)) { - extern int log_got_error; - if (log_got_error) _exit(RERR_PARTIAL); - _exit(0); - } - static RETSIGTYPE sigchld_handler(int UNUSED(val)) { #ifdef WNOHANG int cnt, status; --- 885,890 ---- *************** *** 964,970 **** orig_argv = argv; signal(SIGUSR1, sigusr1_handler); - signal(SIGUSR2, sigusr2_handler); signal(SIGCHLD, sigchld_handler); #ifdef MAINTAINER_MODE signal(SIGSEGV, rsync_panic_handler); --- 976,981 ---- -- Anthony Heading This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchas...
2001 Nov 20
2
patch to enable faster mirroring of large filesystems
...rce_list ? send_file_list_fp(f_out,src_list_fp) : + send_file_list(f_out,argc,argv)); if (verbose > 3) rprintf(FINFO,"file list sent\n"); @@ -677,6 +681,7 @@ extern int dry_run; extern int am_daemon; extern int am_server; + extern int source_list; signal(SIGUSR1, sigusr1_handler); signal(SIGUSR2, sigusr2_handler); @@ -702,6 +707,14 @@ argc -= optind; argv += optind; optind = 0; + + if (source_list && + ((argc != 2) || + !(src_list_fp = (strcmp(argv[0],"-") ? + fopen(argv[0],"r") : stdin)))) { + usage(FERROR); + exit_cl...
2002 Feb 20
1
Errors compiling rsync 2.5.2 on Solaris 8
....o util.c: In function `strlower': util.c:609: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c main.c -o main.o main.c: In function `client_run': main.c:529: warning: `flist' might be used uninitialized in this function main.c: In function `sigusr1_handler': main.c:779: warning: unused parameter `val' main.c: In function `sigusr2_handler': main.c:783: warning: unused parameter `val' main.c: In function `sigchld_handler': main.c:789: warning: unused parameter `val' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c checksu...
2002 Jan 29
1
Solaris 2.8/2.5.2 build issues
....o util.c: In function `strlower': util.c:609: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c main.c -o main.o main.c: In function `client_run': main.c:529: warning: `flist' might be used uninitialized in this function main.c: In function `sigusr1_handler': main.c:779: warning: unused parameter `val' main.c: In function `sigusr2_handler': main.c:783: warning: unused parameter `val' main.c: In function `sigchld_handler': main.c:789: warning: unused parameter `val' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c checksu...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.
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
2002 Feb 07
1
Latest version of the batch mode cleanup patch
...ret; - extern int read_batch; /* dw */ - extern int write_batch; /* dw */ - extern char *batch_ext; /* dw */ - int orig_argc; /* dw */ + extern int write_batch; + int orig_argc; char **orig_argv; - orig_argc = argc; /* dw */ + orig_argc = argc; orig_argv = argv; signal(SIGUSR1, sigusr1_handler); @@ -847,15 +849,10 @@ that implement getcwd that way "pwd" can't be found after chroot. */ push_dir(NULL,0); - if (write_batch) { /* dw */ - create_batch_file_ext(); + if (write_batch && !am_server) { write_batch_argvs_file(orig_argc, orig_argv); } - i...