aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorentropy <entropy@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-09-13 20:04:57 +0000
committerentropy <entropy@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-09-13 20:04:57 +0000
commitb416e414376c0eeb472e93a41b394085e94df7b2 (patch)
tree0b49417dff00d4abb990be01669342dc7afcb26a /lcd4linux.c
parent663f8445f1120cbb21653da3956f0e35be881ebe (diff)
downloadlcd4linux-b416e414376c0eeb472e93a41b394085e94df7b2.tar.gz
[lcd4linux @ 2006-09-13 20:04:57 by entropy]
threads change argv[0] to their thread name, for a neat 'ps' output git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@711 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 1e33e7c..824c59c 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.81 2006/08/13 06:46:51 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.82 2006/09/13 20:04:57 entropy Exp $
*
* LCD4Linux
*
@@ -23,6 +23,9 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.82 2006/09/13 20:04:57 entropy
+ * threads change argv[0] to their thread name, for a neat 'ps' output
+ *
* Revision 1.81 2006/08/13 06:46:51 reinelt
* T6963 soft-timing & enhancements; indent
*
@@ -394,6 +397,7 @@
#include "timer.h"
#include "layout.h"
#include "plugin.h"
+#include "thread.h"
#include "widget.h"
#include "widget_timer.h"
@@ -541,6 +545,10 @@ int main(int argc, char *argv[])
my_argv[c] = strdup(argv[c]);
}
my_argv[c] = NULL;
+
+ /* save original arguments pointer for threads */
+ thread_argv=argv;
+ thread_argc=argc;
running_foreground = 0;
running_background = 0;