DO NOT REPLY [Bug 3554] New: Second copy of same rsync daemon should notice pid file and quit

samba-bugs at samba.org samba-bugs at samba.org
Sat Feb 25 01:16:01 GMT 2006


https://bugzilla.samba.org/show_bug.cgi?id=3554

           Summary: Second copy of same rsync daemon should notice pid file
                    and quit
           Product: rsync
           Version: 2.6.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: hashproduct at verizon.net
         QAContact: rsync-qa at samba.org


If two rsync daemons using the same pid file are started, the second one should
notice the pid file and quit.  Right now, the second daemon overwrites the pid
file, fails to listen on the port, and then removes the pid file, leaving the
first daemon running without a pid file (harder to kill automatically).  The
fix is as simple as adding O_EXCL to the do_open(lp_pid_file(), ...) call in
clientserver.c.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list