diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-08-28 13:12:15 +0700 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-08-28 13:12:45 +0700 |
| commit | e80b36b495db30c6c0dd5dab577822aa3959d78e (patch) | |
| tree | fa493724e588516c0f124ef86cf142f485f04a62 /src/client.hh | |
| parent | 430b7882eba9912dd722d4c55fbe03403cccd699 (diff) | |
Expose client pid as $kak_client_pid
As requested in #1414
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client.hh b/src/client.hh index d870871b..fd80ba24 100644 --- a/src/client.hh +++ b/src/client.hh @@ -29,7 +29,7 @@ public: Client(std::unique_ptr<UserInterface>&& ui, std::unique_ptr<Window>&& window, SelectionList selections, - EnvVarMap env_vars, + int pid, EnvVarMap env_vars, String name, OnExitCallback on_exit); ~Client(); @@ -69,6 +69,8 @@ public: void exit(int status) { m_on_exit(status); } + int pid() const { return m_pid; } + private: void on_option_changed(const Option& option) override; @@ -83,6 +85,8 @@ private: std::unique_ptr<UserInterface> m_ui; std::unique_ptr<Window> m_window; + const int m_pid; + OnExitCallback m_on_exit; EnvVarMap m_env_vars; |
