Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
d365e229
Commit
d365e229
authored
Dec 06, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The wait_process() call now handles EINTR.
parent
d0236360
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
main.c
main.c
+5
-1
No files found.
main.c
View file @
d365e229
...
@@ -103,7 +103,11 @@ static void show_malloc_stats(void);
...
@@ -103,7 +103,11 @@ static void show_malloc_stats(void);
* remember_children(), we succeed instead of returning an error. */
* remember_children(), we succeed instead of returning an error. */
pid_t
wait_process
(
pid_t
pid
,
int
*
status_ptr
,
int
flags
)
pid_t
wait_process
(
pid_t
pid
,
int
*
status_ptr
,
int
flags
)
{
{
pid_t
waited_pid
=
waitpid
(
pid
,
status_ptr
,
flags
);
pid_t
waited_pid
;
do
{
waited_pid
=
waitpid
(
pid
,
status_ptr
,
flags
);
}
while
(
waited_pid
==
-
1
&&
errno
==
EINTR
);
if
(
waited_pid
==
-
1
&&
errno
==
ECHILD
)
{
if
(
waited_pid
==
-
1
&&
errno
==
ECHILD
)
{
/* Status of requested child no longer available: check to
/* Status of requested child no longer available: check to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment