Create a new connection when a process fork has been detected
This patch attempts to deal with applications that have forked the
process after connecting to the broker. First, the creation of the
connection is delayed until the application attempts to perform a
messaging operation. Second, each time the application performs a
messaging operation the current process id is checked against the id
of the process that created the connection. If the process ids do not
match, the application has called os.fork(). The new child process
discards the existing connection and creates a new one.
Reviewed: https:/ /review. openstack. org/134684 /git.openstack. org/cgit/ openstack/ oslo.messaging/ commit/ ?id=80e62aed7d6 3175079422bd6bb 4578d45da7f30e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 80e62aed7d63175 079422bd6bb4578 d45da7f30e
Author: Kenneth Giusti <email address hidden>
Date: Fri Nov 14 17:06:58 2014 -0500
Create a new connection when a process fork has been detected
This patch attempts to deal with applications that have forked the
process after connecting to the broker. First, the creation of the
connection is delayed until the application attempts to perform a
messaging operation. Second, each time the application performs a
messaging operation the current process id is checked against the id
of the process that created the connection. If the process ids do not
match, the application has called os.fork(). The new child process
discards the existing connection and creates a new one.
Change-Id: I5455cb0f8d380d 6b65f1268b34a91 355cbb14aa2
Closes-Bug: #1392868