aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/getExecutablePath.h
blob: 78adaff48288d8c12415fafdc17683e274cb4aaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <string>

/** Get path to the running executable if possible.
  * It is possible when:
  * - procfs exists;
  * - there is a /proc/self/exe file;
  * Otherwise return empty string.
  */
std::string getExecutablePath();