From: Alan Jenkins Date: Tue, 6 Mar 2018 20:16:10 +0000 (+0000) Subject: login: correct comment in session_device_free() X-Git-Tag: v239~555^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a94c162021bbb0d6065b433040cef693d76162cb;p=thirdparty%2Fsystemd.git login: correct comment in session_device_free() We're not removing the pushed fd "again"; this is the only place logind removes it from PID1. (And stopping the fd doesn't always cause PID1 to remove the fd itself; it depends on the device type). --- diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index 73eee725159..de7d963c6ac 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -419,7 +419,7 @@ void session_device_free(SessionDevice *sd) { if (sd->pushed_fd) { const char *m; - /* Remove the pushed fd again, just in case. */ + /* Make sure to remove the pushed fd. */ m = strjoina("FDSTOREREMOVE=1\n" "FDNAME=session-", sd->session->id);