|
|
@@ -93,14 +93,14 @@ func (e *endpoint) rebindLocked(ctx context.Context, path string, acc Access, se
|
|
|
old := e.closer
|
|
|
e.closer, e.path, e.access, e.id = nil, "", Access{}, socketID{}
|
|
|
_ = old.Close()
|
|
|
+ } else {
|
|
|
+ // The node at the path is not the one this endpoint bound: something outside
|
|
|
+ // nebula removed it, logind clearing /run/user/<uid> on logout or a unit
|
|
|
+ // cleaning a RuntimeDirectory= it shares, or replaced it. The listener is still
|
|
|
+ // open and nothing can reach it, so it is bound afresh below; listen's stale
|
|
|
+ // check decides whether whatever is there now may be cleared.
|
|
|
+ e.l.Warn("The "+e.name+"'s socket is no longer at its path, binding it again", "path", path)
|
|
|
}
|
|
|
-
|
|
|
- // The node at the path is not the one this endpoint bound: something outside
|
|
|
- // nebula removed it, logind clearing /run/user/<uid> on logout or a unit cleaning a
|
|
|
- // RuntimeDirectory= it shares, or replaced it. The listener is still open and
|
|
|
- // nothing can reach it, so it is bound afresh below; listen's stale check decides
|
|
|
- // whether whatever is there now may be cleared.
|
|
|
- e.l.Warn("The "+e.name+"'s socket is no longer at its path, binding it again", "path", path)
|
|
|
}
|
|
|
|
|
|
ln, err := listen(path, acc)
|