#pragma once #include 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); }