Alexander Morozov amorozov@etersoft.ru writes:
This patch partially fixes #30290.
Pipe is renamed to spipe (service pipe) to prevent compilation error: service.c:88:15: error: ‘pipe’ redeclared as different kind of symbol /usr/include/unistd.h:414:12: note: previous declaration of ‘pipe’ was here
You shouldn't need to add global variables, just pass the handle to the thread.