]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/terminal-util.c
core: monitor the inotify file descriptor not the console one in acquire_terminal()
authorFranck Bui <fbui@suse.com>
Wed, 2 Nov 2016 15:24:57 +0000 (16:24 +0100)
committerFranck Bui <fbui@suse.com>
Thu, 17 Nov 2016 08:22:45 +0000 (09:22 +0100)
commitf80da6f3e9913cec4febcf35536b6b98cfa9d33a
tree169d03a74513215e3fe091dae3d2bbdf9ff7a54a
parent51b9bb4f8e88d420ae557c3ecf1922dd9ac95fcc
core: monitor the inotify file descriptor not the console one in acquire_terminal()

When waiting for the terminal to be release in acquire_terminal(), we
were monitoring the terminal fd instead of the inotify descriptor.

Therefore any write accesses would wake up the waiting process instead
of being wake up when the tty is closed only.
src/basic/terminal-util.c