Skip to content

Commit

Permalink
Fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed May 1, 2024
1 parent 158699c commit d6ec53c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/VirtualSerialPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ VirtualSerialPort::VirtualSerialPort(boost::asio::io_context& io_context, const
}

void VirtualSerialPort::setup_pty(int fd) {
std::lock_guard<std::mutex> lock(mutex_);
struct termios tty;
if (tcgetattr(fd, &tty) != 0) {
BOOST_LOG_TRIVIAL(error) << "Error from tcgetattr: " << strerror(errno);
Expand Down

0 comments on commit d6ec53c

Please sign in to comment.