search for: wexitstatus

Displaying 20 results from an estimated 249 matches for "wexitstatus".

2019 Nov 03
1
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...L, 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_sigprocmask(SIG_BLOCK, [CHLD], NUL...
2013 Dec 05
0
Plea for a more loquacious nut
...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 essential....
2013 Dec 04
5
Plea for a more loquacious nut
...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 essential. An unattended bo...
2010 Oct 03
2
R-beta_2010-10-02_r53128 fails to compile on FreeBSD
...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 -o unique.o gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../...
2014 Dec 11
1
[PATCH] p2v: show error dialog if virt-v2v fails (RHBZ#1167601)
...out: - if (control_h) - mexp_close (control_h); + if (control_h) { + if ((status = mexp_close (control_h)) == -1) { + set_conversion_error ("mexp_close: %m"); + ret = -1; + } else if (ret == 0 && + WIFEXITED (status) && + WEXITSTATUS (status) != 0) { + set_conversion_error ("virt-v2v exited with status %d", + WEXITSTATUS (status)); + ret = -1; + } + } cleanup_data_conns (data_conns, nr_disks); return ret; } -- 2.1.0
2015 Sep 15
1
[PATCH] daemon: initrd: print return value from failing process
...str_cpio) == -1) { @@ -74,8 +75,15 @@ do_initrd_list (const char *path) return NULL; } - if (pclose (fp) != 0) { - reply_with_perror ("pclose"); + ret = pclose (fp); + if (ret != 0) { + if (ret == -1) + reply_with_perror ("pclose"); + else { + if (WEXITSTATUS (ret) != 0) + ret = WEXITSTATUS (ret); + reply_with_error ("pclose: command failed with return code %d", ret); + } free_stringslen (filenames.argv, filenames.size); return NULL; } -- 2.1.0
2012 Oct 01
1
BUG to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2
...tatus; 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.1.2, as in debian 6 with gcc 4.4.5. -I wonder if I made the chang...
2015 Nov 23
1
[PATCH] fuse: fix return value of guestunmount for unmounted paths
...* 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't return status code 3...
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...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 error: (1) Child proccess has unexp...
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
2019 Nov 02
2
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...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:50.333240 sendto(9, "&lt...
2019 Feb 22
1
Re: [PATCH nbdkit v3 4/4] Add linuxdisk 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) > +{ > + /* Run the command. */ > + nb...
2007 Jan 09
1
DO NOT REPLY [Bug 4327] New: Sudden rsync errors
...ived 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 system call) 31556 rt_sigactio...
2002 Aug 19
1
Crash while trying to Run atwin2k (Accuterm)
...oring 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 to get past this? -- --...
2007 Sep 04
3
Ocfs2 and debian
...rtbeat) = 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 [pid 3874] write(2, "...
2005 Sep 23
1
Unexplained error
Hello, I like to use rsync to transfer over mine and other peoples ever changing mail folder onto a remote server. My Server (FreeBSD 5.4) RSYNC Version is: 2.6.6 Protocol Version 29 My Client (OSX 10.4.2) RSYNC Version is: 2.6.3 Protocol Version 28 I use this command rsync -vvv --progress --stats --recursive --times \ --perms --links \ --delete /test/my?email?folder/*
2016 Mar 22
0
[PATCH v3 07/11] launch: direct: Don't run qemu -version.
...ta->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"); - guestfs_int_cmd_set_...
2012 Oct 18
10
[PATCH 0/10] Add a mini-library for running external commands.
Inspired by libvirt's virCommand* internal mini-library, this adds some internal APIs for running commands. The first patch contains the new APIs. The subsequent patches change various parts of the library over to use it. Rich.
2015 Sep 29
2
[PATCH 1/2] copy-in: print tar stderr when it fails
...th, const char *remotedir } r = guestfs_int_cmd_wait (cmd); - if (r == -1) + if (r == -1) { + if (drain_fd (g, err_fd, &tar_buf) == 0) { + close (err_fd); + error (g, _("tar command failed: %s"), tar_buf); + } return -1; - if (!(WIFEXITED (r) && WEXITSTATUS (r) == 0)) + } + if (!(WIFEXITED (r) && WEXITSTATUS (r) == 0)) { + if (drain_fd (g, err_fd, &tar_buf) == 0) { + close (err_fd); + error (g, _("tar command failed with %d: %s"), WEXITSTATUS (r), tar_buf); + } return -1; + } return 0; } @@ -248,3 +2...
2009 Aug 19
2
[PATCH libguestfs] guestfish: detect a few more failed syscalls
...]); - dup2 (fd[0], 0); + if (dup2 (fd[0], 0) < 0) { + perror ("dup2 of stdin failed"); + _exit (1); + } r = system (pipecmd); if (r == -1) { @@ -770,9 +779,16 @@ issue_command (const char *cmd, char *argv[], const char *pipecmd) _exit (WEXITSTATUS (r)); } - stdout_saved_fd = dup (1); + if ((stdout_saved_fd = dup (1)) < 0) { + perror ("failed to dup stdout"); + return -1; + } close (fd[0]); - dup2 (fd[1], 1); + if (dup2 (fd[1], 1)) { + perror ("failed to dup stdout"); + clos...