File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lldb/tools/debugserver/source Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,19 @@ bool TTYState::GetTTYState(int fd, bool saveProcessGroup) {
39
39
}
40
40
41
41
bool TTYState::SetTTYState () const {
42
- int result = 0 ;
43
42
if (IsValid ()) {
44
43
if (TFlagsValid ())
45
- result = fcntl (m_fd, F_SETFL, m_tflags);
44
+ fcntl (m_fd, F_SETFL, m_tflags);
46
45
47
46
if (TTYStateValid ())
48
- result = tcsetattr (m_fd, TCSANOW, &m_ttystate);
47
+ tcsetattr (m_fd, TCSANOW, &m_ttystate);
49
48
50
49
if (ProcessGroupValid ()) {
51
50
// Save the original signal handler.
52
51
void (*saved_sigttou_callback)(int ) = NULL ;
53
52
saved_sigttou_callback = (void (*)(int ))signal (SIGTTOU, SIG_IGN);
54
53
// Set the process group
55
- result = tcsetpgrp (m_fd, m_processGroup);
54
+ tcsetpgrp (m_fd, m_processGroup);
56
55
// Restore the original signal handler.
57
56
signal (SIGTTOU, saved_sigttou_callback);
58
57
}
You can’t perform that action at this time.
0 commit comments