summaryrefslogtreecommitdiffstats
path: root/base/setproctitle_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/setproctitle_linux.h')
-rw-r--r--base/setproctitle_linux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/setproctitle_linux.h b/base/setproctitle_linux.h
index 32cc297..c1cf689 100644
--- a/base/setproctitle_linux.h
+++ b/base/setproctitle_linux.h
@@ -11,7 +11,9 @@ extern "C" {
// Set the process title that will show in "ps" and similar tools. Takes
// printf-style format string and arguments. After calling setproctitle()
-// the original main() argv[] array should not be used.
+// the original main() argv[] array should not be used. By default, the
+// original argv[0] is prepended to the format; this can be disabled by
+// including a '-' as the first character of the format string.
void setproctitle(const char* fmt, ...);
// Initialize state needed for setproctitle() on Linux. Pass the argv pointer