ClickHouse/src/Common/waitForPid.h
2022-07-21 11:45:09 +02:00

13 lines
253 B
C++

#pragma once
#include <sys/types.h>
namespace DB
{
/*
* Waits for a specific pid with timeout
* Returns `true` if process terminated successfully in specified timeout or `false` otherwise
*/
bool waitForPid(pid_t pid, size_t timeout_in_seconds);
}