search for: wtermsig

Displaying 20 results from an estimated 65 matches for "wtermsig".

2019 Sep 30
0
[nbdkit PATCH 1/2] server: Propagate unexpected nbdkit failure with --run
...external command: %m"); + r = 1; + } + else if (WIFEXITED (r)) r = WEXITSTATUS (r); - else if (WIFSIGNALED (r)) { + else { + assert (WIFSIGNALED (r)); fprintf (stderr, "%s: external command was killed by signal %d\n", program_name, WTERMSIG (r)); - r = 1; - } - else if (WIFSTOPPED (r)) { - fprintf (stderr, "%s: external command was stopped by signal %d\n", - program_name, WSTOPSIG (r)); - r = 1; + r = WTERMSIG (r) + 128; } - kill (pid, SIGTERM); /* Kill captive nbdkit....
2019 Oct 01
0
[nbdkit PATCH v2 1/6] server: Propagate unexpected nbdkit failure with --run
...ommand: %m"); + r = EXIT_FAILURE; + } + else if (WIFEXITED (r)) r = WEXITSTATUS (r); - else if (WIFSIGNALED (r)) { + else { + assert (WIFSIGNALED (r)); fprintf (stderr, "%s: external command was killed by signal %d\n", program_name, WTERMSIG (r)); - r = 1; - } - else if (WIFSTOPPED (r)) { - fprintf (stderr, "%s: external command was stopped by signal %d\n", - program_name, WSTOPSIG (r)); - r = 1; + r = WTERMSIG (r) + 128; } - kill (pid, SIGTERM); /* Kill captive nbdkit....
2012 Oct 01
1
BUG to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2
...----------------------------------------- -------- -To work did the following: -------------------------------------------------- -------- 417a418 + Int stat = status-> status; 426c427 - If (WIFSIGNALED (status-> status)) { --- + If (WIFSIGNALED (stat)) { 429c430 - Dec2str (status-> pid), WTERMSIG (status-> status)); --- + Dec2str (status-> pid), WTERMSIG (stat)); 431.432 c432, 433 -} Else if (WIFEXITED (status-> status)) { - Request-> exit_status WEXITSTATUS = (status-> status); --- +} Else if (WIFEXITED (stat)) { + Request-> exit_status WEXITSTATUS = (stat); -------------...
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...2006 @@ -114,6 +114,14 @@ * message describing the purpose of the child. Also indicate * this to the caller so that thhey know something went * wrong. */ + if (WIFSIGNALED(*status)) + rprintf(FLOG, + "rsync error: (2) Child proccess has unexpectedly died with signal %d\n", + WTERMSIG(*status)); + else if (WIFEXITED(*status) && WEXITSTATUS(*status) == RERR_CRASH) + rprintf(FLOG, + "rsync error: (2) *** Child proccess has crashed. :-( ***\n"); + *status = WEXITSTATUS(*status); } @@ -1015,6 +1023,13 @@ break; } } + if (WIFSIGNALED(status)) + rp...
2002 May 12
1
"Unexplained error code xxx" in rsync-2.5.5
...rked for a local copy at all ? Another problem in main.c/wait_process(). A call to WEXITSTATUS(*status) must only happen, when WIFEXITED(*status) returns true. Else, WIFSIGNALED(*status) could be true, in which case the process was terminated by a signal. One has to extract the signal number using WTERMSIG(*stat)... and so on. There is also WIFSTOPPED() and WIFCONTINUED(). (mk) -- Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47 >> Im pr?motorischen Cortex kann jeder ein Held sein. (bdw) <<
2019 Sep 30
5
[nbdkit PATCH 0/2] Fix nbdkit --run when nbdkit hits assertion
Found while working on the retry filter. Swap the order of the two patches to see nbdkit ignore assertion failures with status 0. Eric Blake (2): server: Propagate unexpected nbdkit failure with --run tests: Enhance captive test server/captive.c | 43 ++++++++++++++++++++++++++++++---------- tests/test-captive.sh | 46 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 75
2003 Nov 17
1
rsync --daemon and logfile that can't be created
...= 022 15154 getpid() = 15154 15154 time(NULL) = 1069070906 15154 --- SIGSEGV (Segmentation fault) @ 0 (0) --- 15154 +++ killed by SIGSEGV +++ 15153 --- SIGCHLD (Child exited) @ 0 (0) --- 15153 waitpid(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)], WNOHANG) = 15154 15153 waitpid(-1, 0xbffff864, WNOHANG) = -1 ECHILD (No child processes) 15153 sigreturn() = ? (mask now []) 15153 exit_group(0) = ? 1) It's a bother that it first daemonizes itself and then chec...
2004 Oct 18
1
[LLVMdev] Compiling errors from OptimizerDriver.cpp when compiling on MinGW
...ls/bugpoint/OptimizerDriver.cpp:138: error: ` WEXITSTATUS' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:150: error: ` WIFSIGNALED' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:151: error: `WTERMSIG' undeclared (first use this function) make[2]: *** [/C/Projects/build/MinGW/llvm/tools/bugpoint/Debug/OptimizerDriver.lo] Error 1 -------------------------- Henrik _________________________________________________________________ Undg� pop-ups med MSN Toolbar - http://toolbar.msn.dk hen...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...7\342%", 23) = -1 EPIPE (Broken pipe) [pid 24068] --- SIGPIPE (Broken pipe) @ 0 (0) --- Process 24068 detached <... read resumed> "", 4) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- close(5) = 0 wait4(24068, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGPIPE}], 0, NULL) = 24068 close(4) = 0 write(2, "No Permission.\n", 15No Permission. ) = 15 write(2, "qstat: cannot connect to server "..., 63qstat: cannot connect to server moab.hpc.usu.edu (errno=15007) ) = 63 exit_group(-1)...
2004 Oct 06
2
[LLVMdev] Compiling errors from UnixLocalInferiorProcess.cpp when compiling on MinGW
...TSTATUS' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:454: error: ` WIFSIGNALED' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:455: error: ` WTERMSIG' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:460: error: ` SIGKILL' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:460: error: ` kill' u...
2017 Jun 21
2
Dovecot 2.2.30* compiling error
Andrey Jr. Melnikov wrote: > Mart Pirita <sysadmin at e-positive.ee> wrote: >> Hello. >> I cant build 2.2.30*, but I can build fine version 2.2.29* with same >> options: >> RedHat based customized distro, 2.6.28.10 kernel > [...] > >> Build error: >> ltest_lib-test-bits.o: In function `bits_required64': >>
2004 Oct 06
0
[LLVMdev] Compiling errors from UnixLocalInferiorProcess.cpp when compiling on MinGW
...st use this function) > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:454: > error: ` > WIFSIGNALED' undeclared (first use this function) > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:455: > error: ` > WTERMSIG' undeclared (first use this function) > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:460: > error: ` > SIGKILL' undeclared (first use this function) > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:460: >...
2019 Oct 01
9
[nbdkit PATCH v2 0/6] Improve retry filter
Includes a rework of the previously posted patch for --run improvements (mostly with improved comments and commit message; I decided that waiting for the captive nbdkit to exit was overkill), and four new patches. The tests are intentionally separate, to allow rearranging the order of the series to see the failures being fixed. Eric Blake (6): server: Propagate unexpected nbdkit failure with
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
* Introduce new variants of the logging functions which include errno values (converted using strerror) in the messages passed to the application''s logging callback. * Use the new errno-including logging functions everywhere where appropriate. In general, xc_... functions return errno values or 0; xs_... functions return 0 or -1 (or some such) setting errno. * When
2017 Nov 20
3
[nbdkit PATCH 0/2] Add nbd forwarder test coverage
To avoid bitrot, any new feature needs testsuite coverage ;) Still to come: once I get my work on parallel nbd finished, I will add a test-parallel-nbd.sh that closely mirrors what my other series added in test-parallel-file.sh. If desired, it might be a fun exercise to tweak test-nbd into using a for-loop of user-controlled depth for how deep you want to nest the forwarding tree, to see where
2017 Jun 21
0
Dovecot 2.2.30* compiling error
...; db-checkpassword.c:437:26: error: assignment of read-only member '__in' > db-checkpassword.c:439:13: error: assignment of read-only member '__in' > db-checkpassword.c:440:26: error: assignment of read-only member '__in' But this is weird. Why are your WIFSIGNALED(), WTERMSIG(), WIFEXITED() and WEXITSTATUS() macros trying to write to the status variable? Also this code hasn't even changed between 2.2.29 and 2.2.30.
2001 Jan 23
0
Build Problem
...random.c In file included from openbsd-compat.h:26, from includes.h:95, from bsd-arc4random.c:25: bsd-waitpid.h:38: warning: `WEXITSTATUS' redefined /usr/include/sys/wait.h:83: warning: this is the location of the previous definition bsd-waitpid.h:39: warning: `WTERMSIG' redefined /usr/include/sys/wait.h:84: warning: this is the location of the previous definition bsd-waitpid.h:40: warning: `WCOREFLAG' redefined /usr/include/sys/wait.h:91: warning: this is the location of the previous definition bsd-waitpid.h:41: warning: `WCOREDUMP' redefined /usr/inc...
2001 Jul 26
0
Problems during building openssh-2.9p2 on solaris2.8
...-compat.h:35, from ../includes.h:102, from bsd-arc4random.c:25: ./openbsd-compat/bsd-waitpid.h:40: warning: `WEXITSTATUS' redefined /usr/include/sys/wait.h:78: warning: this is the location of the previous definition ./openbsd-compat/bsd-waitpid.h:41: warning: `WTERMSIG' redefined /usr/include/sys/wait.h:79: warning: this is the location of the previous definition ./openbsd-compat/bsd-waitpid.h:43: warning: `WCOREDUMP' redefined /usr/include/sys/wait.h:69: warning: this is the location of the previous definition In file included from ../openbsd-compat/open...
2004 Oct 16
0
[LLVMdev] Compiling errors from OptimizerDriver.cpp when compiling on MinGW
...ls/bugpoint/OptimizerDriver.cpp:138: error: ` WEXITSTATUS' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:150: error: ` WIFSIGNALED' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:151: error: `WTERMSIG' undeclared (first use this function) make[2]: *** [/C/Projects/build/MinGW/llvm/tools/bugpoint/Debug/OptimizerDriver.lo] Error 1 -------------------------- Henrik _________________________________________________________________ F� alle de nye og sjove ikoner med MSN Messenger http://me...
2014 Apr 16
1
[Bug 10555] New: checksum-reading.diff causes rsync to segfault with large amount of files
...ender] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1pre1] dmesg: rsync[38216]: segfault at 2a36 ip 00000000004209b6 sp 00007fffa6fc7e50 error 6 in rsync[400000+6b000] strace: ... --- SIGCHLD (Child exited) @ 0 (0) --- wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], WNOHANG, NULL) = 8792 wait4(-1, 0x7fff1fcd221c, WNOHANG, NULL) = -1 ECHILD (No child processes) ... Works with small amount of files in directory. Does not work with large amount of files in directory. If I compile without the checksum-reading.diff, the b...