diff options
author | Andris Mednis <Andris.Mednis@zabbix.com> | 2013-09-19 12:24:56 +0400 |
---|---|---|
committer | Andris Mednis <Andris.Mednis@zabbix.com> | 2013-09-19 12:24:56 +0400 |
commit | cd51e179188d6b29bf04898adb5b97765d8298d8 (patch) | |
tree | 3ad45c5ba58b0358d074c4fbce441b6d6aea692a /include/setproctitle.h | |
parent | d6ebd11e4213dd4556cd044f9de1801fed35fc98 (diff) |
...GI..PS. [ZBXNEXT-1855] added setproctitle() implementation for Linux; minor configure.in code formatting
Diffstat (limited to 'include/setproctitle.h')
-rw-r--r-- | include/setproctitle.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/setproctitle.h b/include/setproctitle.h new file mode 100644 index 00000000000..eddbf76ad12 --- /dev/null +++ b/include/setproctitle.h @@ -0,0 +1,32 @@ +/* +** Zabbix +** Copyright (C) 2001-2013 Zabbix SIA +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 2 of the License, or +** (at your option) any later version. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +**/ + +#ifndef ZABBIX_SETPROCTITLE_H +#define ZABBIX_SETPROCTITLE_H + +#if defined(__linux__) +# define PS_OVERWRITE_ARGV +#endif + +char ** setproctitle_save_env(int argc, char **argv); +void setproctitle_init(const char *title); +void setproctitle_set_status(const char *status); +void setproctitle_free_env(void); + +#endif /* ZABBIX_SETPROCTITLE_H */ |