search for: wifexit

Displaying 20 results from an estimated 225 matches for "wifexit".

Did you mean: winexit
2019 Nov 03
1
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...SIG_UNBLOCK, [CHLD], NULL, 8) = 0 22:55:50.334440 select(4, [0 3], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted if no handler) 22:55:50.335625 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6923, si_uid=1002, si_status=111, si_utime=0, si_stime=0} --- 22:55:50.335649 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 111}], WNOHANG, NULL) = 6923 22:55:50.335683 close(4) = 0 22:55:50.335710 wait4(-1, 0x7fff05f68d8c, WNOHANG, NULL) = -1 ECHILD (No child processes) 22:55:50.335742 rt_sigreturn({mask=[]}) = -1 EINTR (Interrupted system call) 22:55:50.335773 rt_sigpro...
2010 Oct 03
2
R-beta_2010-10-02_r53128 fails to compile on FreeBSD
...lib -I../../src/extra/bzip2 -I../../src/extra/pcre -I../../src/extra -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c sysutils.c -o sysutils.o sysutils.c: In function 'R_system': sysutils.c:289: warning: implicit declaration of function 'WIFEXITED' sysutils.c:289: warning: implicit declaration of function 'WEXITSTATUS' gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I../../src/extra -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c unique.c -...
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, Phi...
2019 Sep 30
0
[nbdkit PATCH 1/2] server: Propagate unexpected nbdkit failure with --run
...if it unexpectedly died, ensure that our exit status reflects that fact. Note that nbdkit normally should exit with status 0 (even when it is sent a signal like SIGHUP or SIGINT) or die from a signal. While at it, fix the fact that system() can fail with a value that is not appropriate to hand to WIFEXITED() if the child was not even spawned, but cannot fail with WIFSTOPPED. Also, reflect death from signal to a status > 128 rather than 1 (we could be even fancier and also re-raise the signal so that we die from the same thing, but it's not obvious we need that much work...). Signed-off-by:...
2019 Oct 01
0
[nbdkit PATCH v2 1/6] server: Propagate unexpected nbdkit failure with --run
...complex to sleep for a bit and follow up with SIGKILL, but it's not worth blocking the code right now (and if we do exit before the child, the child becomes an orphan process auto-reaped by init). While at it, fix the fact that system() can fail with a value that is not appropriate to hand to WIFEXITED() if the child was not even spawned, but cannot fail with WIFSTOPPED. Prefer EXIT_FAILURE over hard-coded 1. Use exit() instead of _exit() to allow I/O to flush and any atexit handlers to run. Also, reflect death from signal to a status > 128 rather than 1 (we could be even fancier and also...
2002 Mar 29
1
Two patches for OpenSSH 3.1p1 (fwd)
...18 22:00:10 2002 *************** *** 110,118 **** close(p[0]); ! if (waitpid(pid, &ret, 0) == -1) ! fatal("Couldn't wait for ssh-rand-helper completion: %s", strerror(errno)); /* We don't mind if the child exits upon a SIGPIPE */ if (!WIFEXITED(ret) && --- 110,124 ---- close(p[0]); ! { ! int code; ! ! while ((code = waitpid(pid, &ret, 0)) == -1 && errno == EINTR) ! ; ! if (code < 0) ! fatal("Couldn't wait for ssh-rand-helper completion: %s", strerror...
2012 Oct 01
1
BUG to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2
...----------------- -------- 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); -------------------------------------------------- -------- With this change worked perfectly ntanto in debian 4 with gcc 4....
2015 Nov 23
1
[PATCH] fuse: fix return value of guestunmount for unmounted paths
...a FUSE mountpoint. + * to exit. It should exit with status code _3_ because we gave it + * a directory which isn't a FUSE mountpoint. */ close (pipefd[1]); @@ -117,10 +117,10 @@ main (int argc, char *argv[]) perror ("waitpid"); exit (EXIT_FAILURE); } - if (!WIFEXITED (status) || WEXITSTATUS (status) != 2) { + if (!WIFEXITED (status) || WEXITSTATUS (status) != 3) { char status_string[80]; - fprintf (stderr, "%s: test failed: guestunmount didn't return status code 2; %s\n", + fprintf (stderr, "%s: test failed: guestunmount didn&...
2019 Nov 02
2
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...ULL) = 0 22:55:15.295211 epoll_wait(12, [], 1, 30000) = 0 Here's where the 30 second's timeout is requested and waited. 22:55:45.325580 kill(6929, SIGTERM) = 0 22:55:45.325769 epoll_wait(12, [], 1, 5000) = 0 22:55:50.331108 kill(6929, SIGKILL) = 0 22:55:50.332867 wait4(6929, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6929 22:55:50.333020 epoll_ctl(12, EPOLL_CTL_DEL, 5, 0x7ffd59156b6c) = 0 22:55:50.333060 epoll_ctl(7, EPOLL_CTL_ADD, 5, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP, {u32=47201248, u64=94699781110752}}) = 0 22:55:50.333097 close(12) = 0 22:55:5...
2007 Jan 09
1
DO NOT REPLY [Bug 4327] New: Sudden rsync errors
..."rsync error: received SIGUSR1 (c"..., 72) = 72 31622 write(2, "\n", 1) = 1 31622 exit_group(19) = ? 31556 <... write resumed> ) = ? ERESTARTSYS (To be restarted) 31556 --- SIGCHLD (Child exited) @ 0 (0) --- 31556 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 255}], WNOHANG, NULL) = 31557 31556 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 19}], WNOHANG, NULL) = 31622 31556 wait4(-1, 0x7fffea7a344c, WNOHANG, NULL) = -1 ECHILD (No child processes) 31556 rt_sigreturn(0xffffffffffffffff) = -1 EINTR (Interrupted sy...
2013 Dec 05
0
Plea for a more loquacious nut
...er, but my C programming is limited to a class exercise many many years ago, and its based on this "experience" that I'm guessing that in upssched.c function exec_cmd the code > > snprintf(buf, sizeof(buf), "%s %s", cmdscript, cmd); > err = system(buf); > if (WIFEXITED(err)) { > if (WEXITSTATUS(err)) { > upslogx(LOG_INFO, "exec_cmd(%s) returned %d", buf, WEXITSTATUS(err)); > } > > attempts to send a command to the operating system, possibly to execute a Bash script. If system(buf) fails, the tests block the error message. Surely t...
2002 Aug 19
1
Crash while trying to Run atwin2k (Accuterm)
...file or directory), ignoring drive A: fixme:console:SetConsoleCtrlHandler (0x4047fd10,1) - no error checking or testing yet err:wineconsole:WinMain WCUSER_InitBackend failed. err:win:WIN_FindWndPtr window 10021 belongs to other process err:win:WIN_FindWndPtr window 10021 belongs to other process [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 11335 wait4(-1, /usr/bin/wine: line 459: 11337 Terminated $WINEBIN/$WINE_BIN_NAME "$@" [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 11336 <end snip> Using the latest debian wine installation. Any ideas how...
2007 Sep 04
3
Ocfs2 and debian
...t;, 24while starting heartbeat) = 24 [pid 3875] write(2, "\r\n", 2 ) = 2 [pid 3875] rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 [pid 3875] exit_group(1) = ? Process 3874 resumed Process 3875 detached [pid 3874] <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 3875 [pid 3874] rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 [pid 3874] --- SIGCHLD (Child exited) @ 0 (0) --- [pid 3874] write(2, "mount.ocfs2", 11mount.ocfs2) = 11 [pid 3874] write(2, ": ", 2: ) = 2...
2013 Dec 04
5
Plea for a more loquacious nut
...ng a compiler, but my C programming is limited to a class exercise many many years ago, and its based on this "experience" that I'm guessing that in upssched.c function exec_cmd the code snprintf(buf, sizeof(buf), "%s %s", cmdscript, cmd); err = system(buf); if (WIFEXITED(err)) { if (WEXITSTATUS(err)) { upslogx(LOG_INFO, "exec_cmd(%s) returned %d", buf, WEXITSTATUS(err)); } attempts to send a command to the operating system, possibly to execute a Bash script. If system(buf) fails, the tests block the error message. Surely the error message is...
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
2016 Mar 22
0
[PATCH v3 07/11] launch: direct: Don't run qemu -version.
...r; free (data->qemu_help); data->qemu_help = NULL; - free (data->qemu_version); - data->qemu_version = NULL; free (data->qemu_devices); data->qemu_devices = NULL; @@ -960,34 +955,24 @@ test_qemu (guestfs_h *g, struct backend_direct_data *data) if (r == -1 || !WIFEXITED (r) || WEXITSTATUS (r) != 0) goto error; + parse_qemu_version (g, data); + guestfs_int_cmd_add_arg (cmd2, g->hv); guestfs_int_cmd_add_arg (cmd2, "-display"); guestfs_int_cmd_add_arg (cmd2, "none"); - guestfs_int_cmd_add_arg (cmd2, "-version"); -...
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...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)) + rprintf(FLOG, + "rsync e...
2002 Mar 26
1
Two patches for OpenSSH 3.1p1
...18 22:00:10 2002 *************** *** 110,118 **** close(p[0]); ! if (waitpid(pid, &ret, 0) == -1) ! fatal("Couldn't wait for ssh-rand-helper completion: %s", strerror(errno)); /* We don't mind if the child exits upon a SIGPIPE */ if (!WIFEXITED(ret) && --- 110,124 ---- close(p[0]); ! { ! int code; ! ! while ((code = waitpid(pid, &ret, 0)) == -1 && errno == EINTR) ! ; ! if (code < 0) ! fatal("Couldn't wait for ssh-rand-helper completion: %s", strerror...
2019 Feb 22
1
Re: [PATCH nbdkit v3 4/4] Add linuxdisk plugin.
...gt; nbdkit-floppy-plugin, the implementations and use cases of all three > +static int64_t > +estimate_size (void) > +{ > > + r = pclose (fp); > + if (r == -1) { > + nbdkit_error ("pclose: %m"); > + free (line); > + return -1; > + } > + if (WIFEXITED (r) && WEXITSTATUS (r) != 0) { > + nbdkit_error ("du command failed with exit code %d", WEXITSTATUS (r)); > + return -1; > + } > + Doesn't cover if the process died due to signal. > +static int > +mke2fs (const char *filename) > +{ > + /* R...
2017 Mar 14
3
Having problem getting Asterisk to work on CentOS 7
...hen running as a service, I simply reboot the machine. Then I log it as root and notice it's not writing to the log. When running it as a service (after restart). Here is what the output from strace -p $PID_OF_ASTERISK [root at localhost ~]# strace -p 1470 Process 1470 attached wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2505, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, 0x7ffd2cbd4490, WNOHANG, NULL) = -1 ECHILD (No child processes) rt_sigreturn()...