Notify io_service before forking (for pausing) python in bgp_stress_test
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Won't Fix
|
Medium
|
Ananth Suryanarayana | |||
R3.1 |
Won't Fix
|
Medium
|
Ananth Suryanarayana | |||
Trunk |
Fix Committed
|
Medium
|
Ananth Suryanarayana |
Bug Description
If io-service is not notified, fork() messes up ip read and write in the parent
diff --git a/src/bgp/
index 9d71e69..6b0d858 100644
--- a/src/bgp/
+++ b/src/bgp/
@@ -2520,9 +2520,14 @@ void BgpStressTest:
return;
cout << message;
BGP_
+
+ evm_.io_
pid_t pid;
- if (!(pid = fork()))
+ if (!(pid = fork())) {
+ evm_.io_
+ }
+ evm_.io_
int status;
waitpid(pid, &status, 0);
HEAP_
Review in progress for https:/ /review. opencontrail. org/22025
Submitter: Ananth Suryanarayana (<email address hidden>)