Adding undefined procedure.

This commit is contained in:
Alan Mishchenko 2025-12-24 20:49:55 -08:00
parent d2c15a04db
commit 2accf61bcd
1 changed files with 11 additions and 0 deletions

View File

@ -72,11 +72,22 @@ void kill_on_parent_death(int sig)
#include <thread>
#include <cassert>
#include <cerrno>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
template <typename Func>
static auto retry_eintr(Func &&fn) -> decltype(fn())
{
decltype(fn()) rc;
do {
rc = fn();
} while (rc == -1 && errno == EINTR);
return rc;
}
void kill_on_parent_death(int sig)
{
const int ppid = getppid();