mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
13 lines
271 B
C++
13 lines
271 B
C++
|
#pragma once
|
||
|
#include <sys/types.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
/*
|
||
|
* Waits for a specific pid with timeout, using modern Linux and OSX facilities
|
||
|
* Returns `true` if process terminated successfully or `false` otherwise
|
||
|
*/
|
||
|
bool waitForPid(pid_t pid, size_t timeout_in_seconds);
|
||
|
|
||
|
}
|