aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/waitForPid.h
blob: 85a0d2c8dd9f4192cdcd97e435f977de1e9b2b5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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);

}