From 7c0fb2e980af93923f2071e1af087010962e06bd Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Fri, 26 Aug 2011 09:24:25 +0200 Subject: Import upstream version 0.11.0~svn1158 --- thread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'thread.c') 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: -- cgit v1.2.3