set thread name for serial port systemd monitor
Dieser Commit ist enthalten in:
Ursprung
09e6798e73
Commit
c80521104e
@ -23,6 +23,7 @@
|
||||
#include "serialportlistimplsystemd.hpp"
|
||||
#include "../../core/eventloop.hpp"
|
||||
#include "../../utils/startswith.hpp"
|
||||
#include "../../utils/setthreadname.hpp"
|
||||
|
||||
namespace Linux {
|
||||
|
||||
@ -55,6 +56,8 @@ SerialPortListImplSystemD::SerialPortListImplSystemD(SerialPortList& list)
|
||||
, m_thread{
|
||||
[this]()
|
||||
{
|
||||
setThreadName("serialport-sysd");
|
||||
|
||||
sd_device_monitor* monitor = nullptr;
|
||||
|
||||
if(sd_device_monitor_new(&monitor) == 0)
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren