chiark / gitweb /
logind: use open_terminal() instead of open()
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 18 Aug 2015 18:41:24 +0000 (14:41 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:18:46 +0000 (10:18 +0100)
commit21fa96e9227e2438f44de929ee6787ad32360c16
tree94d3261b6e2f85d09c9d051acca35df3e9ec2f05
parent0c97084037af1abbae8949c76b1706d88cfdfb86
logind: use open_terminal() instead of open()

The open_terminal() function adds retries in case a terminal
is in the process of being closed when we open it, and should
generally be used to open a terminal. We especially need it
for code that a subsequent commit adds that reopens the terminal
at session shut-down time; such races would be more likely in
that case.

Found by Ray Strode.
src/login/logind-session.c