search for: wifsignaled

Displaying 20 results from an estimated 81 matches for "wifsignaled".

2000 Oct 27
1
Typo in 2.2.0p1 ??
I don't already figure out what is the real impact of this but I think there is a typo in function sigchld_handler() in serverloop.c (l 75). It is written if (WIFEXITED(child_wait_status) || WIFSIGNALED(child_wait_status)) child_terminated = 1; child_has_selected = 0; But I think one actually means: if (WIFEXITED(child_wait_status) || WIFSIGNALED(child_wait_status)) { child_terminated = 1; child_has_selected = 0; } Regards, Philippe
2012 Oct 01
1
BUG to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2
...ror 1 make [1]: Leaving directory `/ usr/src/dovecot/dovecot-2.1.7 ' make: ** [all] Error 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-> statu...
2019 Sep 30
0
[nbdkit PATCH 1/2] server: Propagate unexpected nbdkit failure with --run
...d > 0) { /* Parent process is the run command. */ r = system (cmd); - if (WIFEXITED (r)) + if (r == -1) { + nbdkit_error ("failure to execute 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...
2019 Oct 01
0
[nbdkit PATCH v2 1/6] server: Propagate unexpected nbdkit failure with --run
.../* Parent process is the run command. */ r = system (cmd); - if (WIFEXITED (r)) + if (r == -1) { + nbdkit_error ("failure to execute external command: %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...
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...t; }, diff -ur rsync-2.6.6/main.c rsync/main.c --- rsync-2.6.6/main.c Thu May 12 11:43:14 2005 +++ rsync/main.c Sat Jan 28 06:29:06 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. :-( ***...
2002 May 12
1
"Unexplained error code xxx" in rsync-2.5.5
...i ask you. This is a local copy operation: rsync -aC --exclude=README --exclude=Makefile . /u/tmp/bla Is there a child process forked 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?...
2003 Nov 17
1
rsync --daemon and logfile that can't be created
...tory) 15154 umask(0) = 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 daemoniz...
2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
.../* EOF encountered reading from fdout. */ +static int fdout_maybe_eof = 0; static int fderr_eof = 0; /* EOF encountered readung from fderr. */ static int fdin_is_tty = 0; /* fdin points to a tty. */ @@ -107,6 +108,9 @@ wait_pid, child_pid); if (WIFEXITED(child_wait_status) || - WIFSIGNALED(child_wait_status)) + WIFSIGNALED(child_wait_status)) { child_terminated = 1; + if (fdout_maybe_eof) + fdout_eof = 1; + } } signal(SIGCHLD, sigchld_handler); @@ -338,10 +342,14 @@ /* Read and buffer any available stdout data from the program. */ - if (!fdout_eof && FD...
2004 Oct 18
1
[LLVMdev] Compiling errors from OptimizerDriver.cpp when compiling on MinGW
...s/bugpoint/OptimizerDriver.cpp:138: error: `WIFEXITED' undeclared (first use this function) c:/Projects/src/llvm/tools/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 ___...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...4B\312\217\374x\276\311\217\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) ) = 6...
2004 Oct 06
2
[LLVMdev] Compiling errors from UnixLocalInferiorProcess.cpp when compiling on MinGW
...FEXITED' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:453: error: ` WEXITSTATUS' 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...
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': >>
2000 May 12
1
Patch: OpenSSH 2.1.0 under Solaris 8, Solaris 7 and other sys tems, too
> -----Urspr?ngliche Nachricht----- > Von: Andre Lucas [SMTP:andre.lucas at dial.pipex.com] > Gesendet am: Freitag, 12. Mai 2000 16:37 > An: Bladt Norbert > Cc: 'Karsten Thygesen'; 'openssh-unix-dev at mindrot.org'; > 'carl at bl.echidna.id.au' > Betreff: Re: Patch: OpenSSH 2.1.0 under Solaris 8, Solaris 7 and > other systems, too > > Well
2016 Feb 12
2
Test Failure OpenSSH 7.1 P2 on HPE NSE for integrity
...it-signal reply 0 The code for this is in session_exit_message() and looks like: if (WIFEXITED(status)) { channel_request_start(s->chanid, "exit-status", 0); packet_put_int(WEXITSTATUS(status)); packet_send(); } else if (WIFSIGNALED(status)) { channel_request_start(s->chanid, "exit-signal", 0); so your printf is probably dying with a signal rather than exiting. Which signal? dunno, but my guess would be SIGPIPE. Try adding something like this to the top of session_exit_message(): debug3...
2008 Dec 02
2
my_vsnprintf crash on HP-UX
...) .................................................................................................................................... [entry] [5301] exit(6) [implicit (kill failure)] ................................................................................................................... WIFSIGNALED(SIGABRT)|WCOREDUMP [5295] waitpid(-1, WIFSIGNALED(SIGABRT)|WCOREDUMP, WNOHANG) ................................................................................................ = 5301 [5302] kill(5301, SIG#0) ..............................................................................................
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
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:453: > error: ` > WEXITSTATUS' 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: &gt...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...rent (POSIX) */ +/* NeXT's Readdir() is BSD (struct direct) not POSIX (struct dirent) */ #define dirent direct -/* POSIX utime() struct */ -struct utimbuf { - time_t actime; - time_t modtime; -}; - /* FILE */ #define O_NONBLOCK 00004 /* non-blocking open */ @@ -31,19 +44,14 @@ #define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w)) #define WEXITSTATUS(w) (int)(WIFEXITED(w) ? (((w) >> 8) & 0377) : -1) #define WTERMSIG(w) (int)(WIFSIGNALED(w) ? ((w) & 0177) : -1) -#define WCOREFLAG 0x80 -#define WCOREDUMP(w) ((w) & WCOREFLAG) - -/* POSIX "wrapper" funct...
2023 Aug 31
0
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...It's not fool-proof (the script might crash right after it reads > the last byte from the input), but when it happens, it indicates > something wrong. > > Let me check the shell plugin for exit status handling... > > Right, this is what I've been missing: > > if (WIFSIGNALED (status)) { > nbdkit_error ("%s: script terminated by signal %d", > argv0, WTERMSIG (status)); > goto error; > } > > All good. With this, we can say that we're going to asssume that an > EPIPE combined with a normal exit (zero or nonze...
2008 Nov 06
2
Compilation of 1.1.6 fails on HP-UX 11.31
Hi, $ uname -srv HP-UX B.11.31 U $ cc --version cc: HP C/aC++ B3910B A.06.20 [May 13 2008] Compilation fails, output of configure and make are given below. The cause of this is almost certainly that this version of HP-UX does define the QCMD macro in sys/quota.h (checked in the ifdef line 26 dovecot-1.1.6/src/plugins/quota/quota-fs.h) as well as the dqblk struct, but the latter with different