Displaying 20 results from an estimated 142 matches for "wnohang".
2007 Jan 09
1
DO NOT REPLY [Bug 4327] New: Sudden rsync errors
...SIGPIPE (Broken pipe) @ 0 (0) ---
31556 write(2, "rsync: writefd_unbuffered failed"..., 82) = 82
31556 write(2, "\n", 1) = 1
31556 rt_sigaction(SIGUSR1, {SIG_IGN}, NULL, 8) = 0
31556 rt_sigaction(SIGUSR2, {SIG_IGN}, NULL, 8) = 0
31556 wait4(31557, 0x7fffea7a594c, WNOHANG, NULL) = 0
31556 getpid() = 31556
31556 kill(31557, SIGUSR1) = 0
31556 kill(31622, SIGUSR1) = 0
31622 <... select resumed> ) = ? ERESTARTNOHAND (To be restarted)
31622 --- SIGUSR1 (User defined signal 1) @ 0 (0) ---
31556 write(2,...
2002 Sep 03
2
[patch] for rsync
...hope I've done this right. Thanks for your help JW.
Dave
----------------------------------------------------------------------------------
29a30,34
> struct pid_status {
> pid_t pid;
> int status;
> } pid_stat_table[10];
>
37c42,47
< while (waitpid(pid, status, WNOHANG) == 0) {
---
> pid_t waited_pid;
> int cnt;
>
> while ( 1 ) {
> waited_pid = waitpid(pid, status, WNOHANG);
> if ( waited_pid == 0 ) {
39a50
> } else break;
40a52,63
> if (( waited_pid == -1 ) && ( errno == ECHILD )) {
>...
2011 Aug 30
1
[Bug 8423] New: Listing a non-existent remote directory hangs
....0dev-5561c14-x64
--rsync-path=/tmp/rsync-3.1.0dev-5561c14-x64 remote:/tmp/foo/
rsync: change_dir "/tmp/foo" failed: No such file or directory (2)
Strace of local side:
local$ strace -p ${pid}
select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
wait4(20466, 0x7fffe3bd3f7c, WNOHANG, NULL) = 0
select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
wait4(20466, 0x7fffe3bd3f7c, WNOHANG, NULL) = 0
select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
wait4(20466, 0x7fffe3bd3f7c, WNOHANG, NULL) = 0
select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
wait4(20466,...
2003 Jul 23
1
SIGCHLD SIG_IGN, then wait - warning messages
...LD, SIG_IGN);
/* we shouldn't have any children left hanging around
but I have had reports that on Digital Unix zombies
are produced, so this ensures that they are reaped */
#ifdef WNOHANG
while (waitpid(-1, NULL, WNOHANG) > 0);
#endif
-----------------------------
sets SIGCHLD to SIG_IGN, and *then* waits if WNOHANG is
defined. It would appear that if there are still children
left to be cleaned up in Digital Unix after setting SIGCHLD
to SIG_IGN, that there might be...
2012 Oct 16
3
[PATCH] Change the check for PageReadahead into an else-if
From: Raghavendra D Prabhu <rprabhu@wnohang.net>
From 51daa88ebd8e0d437289f589af29d4b39379ea76, page_sync_readahead coalesces
async readahead into its readahead window, so another checking for that again is
not required.
Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
---
fs/btrfs/relocation.c | 10 ++++------
mm/filema...
2002 May 24
1
Rsync hanging
...ay or so will just
hang and sit there... strace attached to the process produces the
following... I wonder where the loop is. Anything I can do to help would
be fabulous. Most of the time it works fine. Very strange.
--
Mike
gettimeofday({1022283618, 513186}, NULL) = 0
wait4(22167, 0xbffff9e8, WNOHANG, NULL) = 0
gettimeofday({1022283618, 514489}, NULL) = 0
gettimeofday({1022283618, 515142}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
gettimeofday({1022283618, 533154}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 2000}) = 0 (Timeout)
gettimeofday({1022283618, 543667}, NULL) = 0...
2002 Feb 28
2
lost status code
Rsync reports the status code of the remote command. So in some
situations the status code is successful when the command fails.
Rsync of a remote file to a local read-only directory fails, but
exits with $status = 0. I'd like to get $status = 23. Is it
possible?
Local copy fails with status = 23
> mkdir /tmp/nowrite
> chmod -w /tmp/nowrite
> rsync /etc/group /tmp/nowrite || echo
2002 Jun 18
1
remote rsync process dies, local hangs
...fd=8 ev=POLLRDNORM rev=0
read(6, "01\0\0\0", 4) = 4
close(6) = 0
poll(0xFFBEE938, 2, 60000) = 1
fd=1 ev=POLLOUT rev=POLLOUT
fd=8 ev=POLLRDNORM rev=0
write(1, "04\0\007FFFFFFFF", 8) = 8
kill(18231, SIGUSR2) = 0
waitid(P_PID, 18231, 0xFFBEFB08, WEXITED|WTRAPPED|WNOHANG) = 0
Received signal #18, SIGCLD, in poll() [caught]
siginfo: SIGCLD CLD_EXITED pid=18231 status=0x0000
poll(0xFFBEFAE8, 0, 20) Err#4 EINTR
waitid(P_ALL, 0, 0xFFBEF620, WEXITED|WTRAPPED|WNOHANG) = 0
waitid(P_ALL, 0, 0xFFBEF620, WEXITED|WTRAPPED|WNOHANG) Err#10 ECHILD
setcontext(0xFFB...
2004 Mar 29
2
Issue with rsync 2.6.1-pre1 on AIX
...level -r says 5200-02]).
-------------- next part --------------
*** socket.c.orig Mon Mar 29 15:29:10 2004
--- socket.c Mon Mar 29 15:30:23 2004
***************
*** 431,440 ****
static RETSIGTYPE sigchld_handler(UNUSED(int val))
{
- signal(SIGCHLD, sigchld_handler);
#ifdef WNOHANG
while (waitpid(-1, NULL, WNOHANG) > 0) {}
#endif
}
--- 431,440 ----
static RETSIGTYPE sigchld_handler(UNUSED(int val))
{
#ifdef WNOHANG
while (waitpid(-1, NULL, WNOHANG) > 0) {}
#endif
+ signal(SIGCHLD, sigchld_handler);
}
-------------- next...
2019 Nov 03
1
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...([13, 14]) = 0
22:55:15.294788 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f15401ec2d0) = 6929
Later dovecot-lda checks non-blockingly whether sendmail has exited and waits for epoll IO event:
22:55:15.295175 wait4(6929, 0x562102d4fee4, WNOHANG, NULL) = 0
22:55:15.295211 epoll_wait(12, [], 1, 30000) = 0
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
I'm not sure why it is waiting for IO event on FD 5, which is a PIPE FD initialized much earlier,...
2006 Dec 19
0
connection unexpectedly closed
...n data send/receive (code 30) at io.c(171) [receiver=2.6.8]
> _exit_cleanup(code=30, file=io.c, line=171): about to call exit(30)
> ) = 2 (in [3], out [4], left {5, 830000})
> --- SIGCHLD (Child exited) @ 0 (0) ---
> waitpid(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGUSR1}], WNOHANG) = 20773
> waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 30}], WNOHANG) = 20774
> waitpid(-1, 0xbff0ffe0, WNOHANG) = -1 ECHILD (No child processes)
> sigreturn() = ? (mask now [])
> select(4, [3], [], NULL, {60, 0}) = 1 (in [3], left {6...
2003 Nov 17
1
rsync --daemon and logfile that can't be created
...= 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 checks the
config etc., giving no feedback whatso...
2016 Nov 30
2
segfault at 968 Error
...7241 mprotect(0x7fd406ea2000, 4096, PROT_READ) = 0
7241 set_tid_address(0x7fd4080809d0) = 7241
7241 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
6080 <... select resumed> ) = ? ERESTARTNOHAND (To be restarted)
6080 --- SIGCHLD (Child exited) @ 0 (0) ---
6080 wait4(-1, NULL, WNOHANG, NULL) = 7241
6080 wait4(-1, NULL, WNOHANG, NULL) = -1 ECHILD (No child processes)
6080 rt_sigreturn(0xffffffffffffffff) = -1 EINTR (Interrupted system call)
6080 select(5, [4], NULL, NULL, NULL <unfinished ...>
so, i have upgraded rsync to latest in my remote pc, but problem not g...
2016 Mar 26
2
Dovecot on FreeBSD 10.1
...$pidof dovecot process, and I got the following. - (Complete trace here: http://pastebin.com/pwL5EU3q)
For me it doesn't seem right. - Have you guys seen anything like this before?
read(55,"\0",64) = 1 (0x1)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
wait4(-1,{ EXITED,val=89 },WNOHANG,0x0) = 19061 (0x4a75)
write(59,"28 19061 DEFAULT-FATAL service(a"...,84) = 84 (0x54)
write(13,"KILL\t19061\n",11) = 11 (0xb)
write(59,"28 19061 BYE\n",13) = 13 (0xd)
sendto(6,"<19>Mar 26 22:05:15 dovecot: mas"...,105,0x0,NULL,0x0) = 105 (0x69)
a...
2009 Aug 11
5
Failed to retrieve current state of resource: No child processes
...0
55 10764 rt_sigaction(SIGQUIT, {SIG_IGN}, {0xb7f438f0, [QUIT], SA_RESTORER|SA_RESTART, 0xb7d1c128}, 8) = 0
56 10764 rt_sigaction(SIGINT, {SIG_IGN}, {0xb7f438f0, [INT], SA_RESTORER|SA_RESTART, 0xb7d1c128}, 8) = 0
57 10764 waitpid(10833, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 10833
58 10764 rt_sigaction(SIGHUP, {0xb7f438f0, [HUP], SA_RESTORER|SA_RESTART, 0xb7d1c128}, {SIG_IGN}, 8) = 0
59 10764 rt_sigaction(SIGQUIT, {0xb7f438f0, [QUIT], SA_RESTORER|SA_RESTART, 0xb7d1c128}, {SIG_IGN}, 8) = 0
60 10764 rt_sigaction(SIGINT, {0xb7f438f0, [INT], SA_RESTORER|SA_R...
2002 Aug 09
0
still seeing hangs -- strace
...sort that allows one of the processes
to properly detect the end of channel. I forgot to do a netstat on the
socket this time -- I'll do it next time. I see this hang 3-4 times each
week.
STRACE OF THE PARENT: (does this forever)
----------------------------------------
wait4(7259, 0xbffffc38, WNOHANG, NULL) = 0
gettimeofday({1028901467, 81808}, NULL) = 0
gettimeofday({1028901467, 81976}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)
gettimeofday({1028901467, 101509}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout)
gettimeofday({1028901467, 111529}, NULL) = 0
w...
2002 Nov 25
1
unexpected tag 90
...sa", 4) = 4
write(2, "unexpected tag 90\n", 18unexpected tag 90
) = 18
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x8050f90, [USR1],
SA_RESTART|0x4000000}, 8) = 0rt_sigaction(SIGUSR2, {SIG_IGN},
{0x8050fb0, [USR2], SA_RESTART|0x4000000}, 8) = 0wait4(22612,
0xbfff613c, WNOHANG, NULL) = 0
getpid() = 22611
kill(22612, SIGUSR1) = 0
--- SIGCHLD (Child exited) ---
wait4(-1, NULL, WNOHANG, NULL) = 22612
wait4(-1, NULL, WNOHANG, NULL) = -1 ECHILD (No child processes)
sigreturn() = ?...
1998 Nov 14
0
Sync passwd and smbpasswd
...Err#4 EINTR
sigprocmask(SIG_BLOCK, 0xEFFFC1D8, 0x00000000) = 0
write(3, " g o t S I G C L D\n", 11) = 11
getuid() = 0 [0]
fstat(3, 0xEFFFC0F0) = 0
waitid(P_ALL, 0, 0xEFFFC108, WEXITED|WTRAPPED|WNOHANG) = 0
waitid(P_ALL, 0, 0xEFFFC108, WEXITED|WTRAPPED|WNOHANG) Err#10 ECHILD
sigaction(SIGCLD, 0xEFFFC0B8, 0xEFFFC1B8) = 0
waitid(P_ALL, 0, 0xEFFFC138, WEXITED|WNOHANG|WNOWAIT) Err#10 ECHILD
sigprocmask(SIG_UNBLOCK, 0xEFFFC1D8, 0x00000000) = 0
setcontext(0xEFFFC328)
poll(0xEFFFC648, 1, -1)...
2005 Jun 02
3
[Bug 2766] rsync endless loop
https://bugzilla.samba.org/show_bug.cgi?id=2766
------- Additional Comments From paul@debian.org 2005-06-02 08:47 -------
It seems to be looping in userspace (no system calls, hence strace doesn't show
anything). Could you try ltrace instead of strace, that should show what
library functions (if any) are being called which may help.
--
Configure bugmail:
2016 Dec 02
2
segfault at 968 Error
...t;> 7241 set_tid_address(0x7fd4080809d0) = 7241
>> 7241 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
>> 6080 <... select resumed> ) = ? ERESTARTNOHAND (To be
>> restarted)
>> 6080 --- SIGCHLD (Child exited) @ 0 (0) ---
>> 6080 wait4(-1, NULL, WNOHANG, NULL) = 7241
>> 6080 wait4(-1, NULL, WNOHANG, NULL) = -1 ECHILD (No child
>processes)
>> 6080 rt_sigreturn(0xffffffffffffffff) = -1 EINTR (Interrupted
>system
>> call)
>> 6080 select(5, [4], NULL, NULL, NULL <unfinished ...>
>>
>> so, i hav...