Bug 4998 - [PATCH] rsync returns from fork before a valid pidfile is created
Summary: [PATCH] rsync returns from fork before a valid pidfile is created
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.9
Hardware: Other FreeBSD
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Depends on:
Reported: 2007-09-28 08:03 UTC by Roy Marples
Modified: 2007-09-30 21:30 UTC (History)
0 users

See Also:

create the pidfile sooner (1.17 KB, patch)
2007-09-28 08:04 UTC, Roy Marples
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples 2007-09-28 08:03:05 UTC
Which causes issues with Gentoo's new boot system as it expects a pidfile to be created in a second or two of the daemon forking.
Comment 1 Roy Marples 2007-09-28 08:04:05 UTC
Created attachment 2933 [details]
create the pidfile sooner

Not a perfect patch, but it's the least intrusive and makes the error window much smaller. Ideally, the parent should write the pidfile though.
Comment 2 Wayne Davison 2007-09-30 21:30:42 UTC
The version is CVS now creates the pid-file more rapidly in the startup sequence.