Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Agner
weston
Commits
c1ace8c4
Commit
c1ace8c4
authored
Jul 22, 2011
by
Kristian Høgsberg
Browse files
tty: Use /dev/tty instead of tty0
parent
9ffb6b98
Changes
1
Hide whitespace changes
Inline
Side-by-side
compositor/tty.c
View file @
c1ace8c4
...
...
@@ -104,7 +104,7 @@ tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func)
memset
(
tty
,
0
,
sizeof
*
tty
);
tty
->
compositor
=
compositor
;
tty
->
vt_func
=
vt_func
;
tty
->
fd
=
open
(
"/dev/tty
0
"
,
O_RDWR
|
O_NOCTTY
);
tty
->
fd
=
open
(
"/dev/tty"
,
O_RDWR
|
O_NOCTTY
);
if
(
tty
->
fd
<=
0
)
{
fprintf
(
stderr
,
"failed to open active tty: %m
\n
"
);
return
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment