diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-16 10:48:03 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-16 10:48:03 -0300 |
commit | 836119ea6de6871a7afa044294df8b40859e3886 (patch) | |
tree | 92b58a8cbf25dabfae64cd1150413076447d2aba /dpid | |
parent | 269fc0ca3f4ede92a73dab0862cd7a5e3a6ed99d (diff) |
Fix a race condition for "dpid stop" command.
Diffstat (limited to 'dpid')
-rw-r--r-- | dpid/dpid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dpid/dpid.c b/dpid/dpid.c index b0ca8420..b66928ad 100644 --- a/dpid/dpid.c +++ b/dpid/dpid.c @@ -769,6 +769,9 @@ void stop_active_dpis(struct dp *dpi_attr_list, int numdpis) dFree(auth_cmd); dFree(bye_cmd); + + /* Allow child dpis some time to read dpid_comm_keys before erasing it */ + sleep (1); } /*! Removes dpis in dpi_attr_list from the |