aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-01-05 17:42:13 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-01-05 18:31:05 +0200
commit7dd7f4e2d7a5eaed676651caf456c1de0704b7cd (patch)
tree2073caae8a686914c84b5bde8bcdf59331240ea6 /src/pies.h
parent6ac0f1e8e19922c63a1542740a7c88116989bb7c (diff)
downloadpies-7dd7f4e2d7a5eaed676651caf456c1de0704b7cd.tar.gz
pies-7dd7f4e2d7a5eaed676651caf456c1de0704b7cd.tar.bz2
Include argv in the output of ctl id command.
* ctl.c (res_instance): Include "argv" in the return json. Use pies_master_argv[0] to report binary path. * pies.c (pies_master_argv,pies_master_argc): New globals. (main): Initialize them. Refuse to restart unless argv[0] begins with a slash. * pies.h (pies_master_argv,pies_master_argc): New globals. * piesctl.c (com_id): Rewrite output formatting.
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pies.h b/src/pies.h
index 7c5e6d7..f69c512 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -287,12 +287,15 @@ extern char *qotdfile;
extern int init_process;
extern char *console_device;
extern int initdefault;
extern int dfl_level;
+extern size_t pies_master_argc;
+extern char **pies_master_argv;
+
enum config_syntax
{
CONF_PIES,
CONF_META1,
CONF_INETD,
CONF_INITTAB

Return to:

Send suggestions and report system problems to the System administrator.