Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3a5cb1af
Commit
3a5cb1af
authored
Feb 08, 2017
by
Stéphane Graber
Committed by
GitHub
Feb 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1424 from brauner/2017-02-08/thomasDOTjaroschATintra2netDOTcom_pty_sigttou
lxc_setup_tios(): Ignore SIGTTOU and SIGTTIN signals
parents
b93fbd24
4dc96430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
console.c
src/lxc/console.c
+9
-1
No files found.
src/lxc/console.c
View file @
3a5cb1af
...
...
@@ -257,6 +257,14 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
return
-
1
;
}
/* ensure we don't end up in an endless loop:
* The kernel might fire SIGTTOU while an
* ioctl() in tcsetattr() is executed. When the ioctl()
* is resumed and retries, the signal handler interrupts it again.
*/
signal
(
SIGTTIN
,
SIG_IGN
);
signal
(
SIGTTOU
,
SIG_IGN
);
newtios
=
*
oldtios
;
/* We use the same settings that ssh does. */
...
...
@@ -265,7 +273,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
#ifdef IUCLC
newtios
.
c_iflag
&=
~
IUCLC
;
#endif
newtios
.
c_lflag
&=
~
(
ISIG
|
ICANON
|
ECHO
|
ECHOE
|
ECHOK
|
ECHONL
);
newtios
.
c_lflag
&=
~
(
TOSTOP
|
ISIG
|
ICANON
|
ECHO
|
ECHOE
|
ECHOK
|
ECHONL
);
#ifdef IEXTEN
newtios
.
c_lflag
&=
~
IEXTEN
;
#endif
...
...
Write
Preview
Markdown
is supported
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