Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pomp_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ static void *pomp_watchdog_thread_cb(void *userdata)
uint32_t counter = 0;

#if defined(__APPLE__)
# if !TARGET_OS_IPHONE
#if !TARGET_OS_IPHONE
res = pthread_setname_np("pomp_watchdog");
if (res != 0)
ULOG_ERRNO("pthread_setname_np", res);
# endif
POMP_LOG_ERRNO("pthread_setname_np");
#endif
#else
res = pthread_setname_np(pthread_self(), "pomp_watchdog");
if (res != 0)
ULOG_ERRNO("pthread_setname_np", res);
POMP_LOG_ERRNO("pthread_setname_np");
#endif

pthread_mutex_lock(&watchdog->mutex);
Expand Down