summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/staprun.h
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2009-03-20 11:59:06 -0400
committerMasami Hiramatsu <mhiramat@redhat.com>2009-03-20 11:59:06 -0400
commit54892f28a2747079fae4aa35b80598cbb993a4c3 (patch)
tree00cb02c62e52b366e478adeff1c97f73c228e2b5 /runtime/staprun/staprun.h
parentf0b8d2671fa56e0e1dcb4cc09fd6f7edf70f8fa3 (diff)
downloadsystemtap-steved-54892f28a2747079fae4aa35b80598cbb993a4c3.tar.gz
systemtap-steved-54892f28a2747079fae4aa35b80598cbb993a4c3.tar.xz
systemtap-steved-54892f28a2747079fae4aa35b80598cbb993a4c3.zip
PR6930: stapio: run in background as a daemon
Add '-D'(daemon mode) option to staprun/stapio for daemon mode. In this mode, stapio shows just its pid and detachs from console. Since it has no stdio, this mode requires -o option. stapio will exit when it receives SIGTERM or detects some error.
Diffstat (limited to 'runtime/staprun/staprun.h')
-rw-r--r--runtime/staprun/staprun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h
index 4c43e3ee..b380cebd 100644
--- a/runtime/staprun/staprun.h
+++ b/runtime/staprun/staprun.h
@@ -157,6 +157,7 @@ extern int attach_mod;
extern int delete_mod;
extern int load_only;
extern int need_uprobes;
+extern int daemon_mode;
/* getopt variables */
extern char *optarg;