set thread name for serial port systemd monitor

Dieser Commit ist enthalten in:
Reinder Feenstra 2023-12-20 18:32:59 +01:00
Ursprung 09e6798e73
Commit c80521104e

Datei anzeigen

@ -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)