If screen doesn't have permissions to write to /var/run/utmp (is not setgid utmp, say), it still happily declares that the window should now be logged in. There's code in place to check for errors: is there a logic flaw in the error-checking code, or is it a flaw with the system pututline? (Ubuntu 9.04).