mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 17:00:40 +01:00
ifcfg-rh/trivial: add code comment about re-reading connection in writer
This commit is contained in:
parent
669e693169
commit
7028818a83
1 changed files with 7 additions and 0 deletions
|
|
@ -2958,6 +2958,13 @@ nms_ifcfg_rh_writer_write_connection (NMConnection *connection,
|
|||
}
|
||||
}
|
||||
|
||||
/* Note that we just wrote the connection to disk, and re-read it from there.
|
||||
* That is racy if somebody else modifies the connection.
|
||||
*
|
||||
* A better solution might be, to re-read the connection only based on the
|
||||
* in-memory representation of what we collected above. But the reader
|
||||
* does not yet allow to inject the configuration. */
|
||||
|
||||
if (out_reread || out_reread_same) {
|
||||
gs_unref_object NMConnection *reread = NULL;
|
||||
gs_free_error GError *local = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue