Displaying 9 results from an estimated 9 matches for "sigusr2_handler".
2002 Apr 12
0
Problem with child process exit status.
...*** 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, sigchld_handler); This doesn't pr...
2003 Jun 27
5
PATCH/RFC: Another stab at the Cygwin hang problem
...ite(cleanup_pipe[1], ".", 1);
! if (waitpid(pid, &status, 0) != pid) {
! rprintf(FERROR,"cleanup in do_recv failed\n");
! exit_cleanup(RERR_SOCKETIO);
! }
return status;
}
***************
*** 867,878 ****
exit_cleanup(RERR_SIGNAL);
}
- static RETSIGTYPE sigusr2_handler(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, sig...
2003 Jan 10
5
working on a 2.5.6pre1 release
...problem and because it
happens after rprintf handling is already shut down in the child process.
I suspected that maybe the catching of the SIGUSR2 signal was not getting
inherited from its parent, but it doesn't help to re-set it in the child.
Nevertheless, I'm not sure whether or not the sigusr2_handler function
is getting called in the child. I'd appreciate some help with this if
anybody else thinks they can figure it out.
- Dave Dykstra
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...1 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);
+ }
+ }
+}
+
+static void sigusr2_handler(int sig)
+{
+ /* SIGUSR2 signals are passed on to every known UPS RP */
+ upstype_t *u;
+
+ for (u = firstups; u; u = u->next) {
+ if ( u->sigusr2 < MAX_SIGUSR2 ) {
+ (u->sigusr2)++;
+ upsdebugx(1, "%s: UPS %s, sigusr2 up to %d", __func__, u->name, u->sigusr2);
+...
2001 Nov 20
2
patch to enable faster mirroring of large filesystems
...rc_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_cleanup(RERR_SYNTAX);
+ }
signal(S...
2002 Feb 20
1
Errors compiling rsync 2.5.2 on Solaris 8
...cc -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 checksum.c -o
checksum.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c match.c -o match...
2002 Jan 29
1
Solaris 2.8/2.5.2 build issues
...cc -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 checksum.c -o
checksum.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c match.c -o match....
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