Description of problem: I'm gradually migrating to F17. I've done the usrmove operation, and am upgrading package by package. Today I noticed that the "at" command no longer worked. Not while loading. Some of the time it can print some of the queued jobs when I do "at -l". But it dies pretty quickly, and the shell says it is "Terminated". I've tried to investigate what is happening, and have come to the conclusion the systemd-logind process is sending the SIGTERM. From what I understand, systemd-logind believe the session is finished, and kills the remaining process in it. But I don't understand systemd enough to understand exactly WHY it believes the session is done before the command is finished, and if systemd or at is doing something wrong. (Nor why running "at" is considered a session of its own in the first place.) In /var/log/messages, these three lines show up: Apr 12 23:40:03 freddi at: PAM pam_close_session: NULL pam handle passed Apr 12 23:40:03 freddi systemd-logind[588]: New session 9 of user göran. Apr 12 23:40:03 freddi systemd-logind[588]: Removed session 9. I'll attach strace:es of the at command, as well as of systemd-logind during the period the command was run. It clearly shows the kill() calls done byt systemd-logind just before at dies. I traced atd too, but it didn't do anything, so I guess it wasn't involved. I'm not sure if this is a bug in at, in systemd, in the order I'm upgrading things, or simply something I've messed up. I know upgrading piece by piece isn't the supported way, but I do believe I've upgraded all packages involved here. Version-Release number of selected component (if applicable): at-3.1.13-7.fc17.x86_64 systemd-44-4.fc17.x86_64 pam-1.1.5-5.fc17.x86_64 pam-1.1.5-5.fc17.i686 glibc-2.15-32.fc17.x86_64 glibc-2.15-32.fc17.i686 How reproducible: Every time, with a slight variation on HOW fast the command dies. Doing "at -l" produces SOME output SOME of the time, before it dies. Steps to Reproduce: 1. Run "at teatime" Actual results: A line "Terminated" and a new shell prompt. Expected results: A prompt from "at" waiting for input.
Created attachment 577177 [details] strace of "at"
Created attachment 577179 [details] strace of "systemd-logind" This trace was started just before staring "at", and stopped just after it died.
Wow, thanks for report. I'll look at it.
Hm, I can't reproduce it as a root. Could you? I see it only as regular user. It looks like duplicate of 812682.
*** This bug has been marked as a duplicate of bug 812682 ***
> Hm, I can't reproduce it as a root. Could you? I hadn't tried as root. You are right, it doesn't happen to root.