block signals in threads

This commit is contained in:
Maxim Devaev
2024-03-04 03:38:45 +02:00
parent c8dc5119fe
commit 98b5e52a68
8 changed files with 31 additions and 14 deletions

View File

@@ -227,11 +227,10 @@ static void _main_loop(void) {
}
static void *_follower_thread(void *v_unix_follow) {
US_THREAD_SETTLE("follower");
const char *path = v_unix_follow;
assert(path != NULL);
US_THREAD_RENAME("follower");
while (!atomic_load(&_g_stop)) {
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
assert(fd >= 0);