]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: correct comment in session_device_free()
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 6 Mar 2018 20:16:10 +0000 (20:16 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 8 Mar 2018 15:01:46 +0000 (15:01 +0000)
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).

src/login/logind-session-device.c

index 73eee725159e6316fecebc4463115d1f139522ce..de7d963c6ac55b0f9b32862f9a799aec0ba82fa3 100644 (file)
@@ -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);