diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-03-20 11:59:06 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2009-03-20 11:59:06 -0400 |
commit | 54892f28a2747079fae4aa35b80598cbb993a4c3 (patch) | |
tree | 00cb02c62e52b366e478adeff1c97f73c228e2b5 /runtime/staprun/staprun.h | |
parent | f0b8d2671fa56e0e1dcb4cc09fd6f7edf70f8fa3 (diff) | |
download | systemtap-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.h | 1 |
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; |