aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--thread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 5e5897b..e9972bd 100644
--- a/thread.c
+++ b/thread.c
@@ -1,4 +1,4 @@
-/* $Id: thread.c 840 2007-09-09 12:17:42Z michael $
+/* $Id: thread.c 1153 2011-07-27 05:12:30Z michael $
* $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/thread.c $
*
* thread handling (mutex, shmem, ...)
@@ -165,9 +165,7 @@ void shm_destroy(const int shmid, const void *buffer)
int thread_create(const char *name, void (*thread) (void *data), void *data)
{
- pid_t pid, ppid;
-
- ppid = getpid();
+ pid_t pid;
switch (pid = fork()) {
case -1: