Displaying 4 results from an estimated 4 matches for "waited_pid".
Did you mean:
wait_pid
2007 Feb 01
1
pre-xfer exec fails in FreeBSD
...ss function as follow, pre-xfer works again.
--- main.c Thu Feb 1 22:42:23 2007
+++ main.c.orig Sat Oct 14 07:46:32 2006
@@ -103,10 +103,7 @@
* remember_children(), we succeed instead of returning an error. */
pid_t wait_process(pid_t pid, int *status_ptr, int flags)
{
- pid_t waited_pid;
- do {
- waited_pid = waitpid(pid, status_ptr, flags);
- } while (errno == EINTR);
+ pid_t waited_pid = waitpid(pid, status_ptr, flags);
if (waited_pid == -1 && errno == ECHILD) {
/* Status of requested child no longer available: c...
2002 Sep 03
2
[patch] for rsync
...nks 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 )) {
> /* status of requested child no lon...
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/*
2002 Sep 01
2
rsync error: unexplained error
...0 ) {
pid_stat_table[indx].pid = pid;
pid_stat_table[indx].status = status;
break;
}
}
} while ( pid > 0 );
#endif
}
void wait_process(pid_t pid, int *status)
{
int waited_pid;
int indx;
do {
waited_pid = waitpid(pid, status, WNOHANG);
if ( waited_pid == 0) {
msleep(20);
ioflush();
}
} while ( waited_pid == 0 );
if (( waited_pid == -1 ) && ( errno == ECHILD )) {...