diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-08-26 09:24:25 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-08-26 09:24:25 +0200 |
commit | 7c0fb2e980af93923f2071e1af087010962e06bd (patch) | |
tree | 622e5a8f57901f9f6dbccec081766c29cffbf08e /thread.c | |
parent | 181cec4348da40331b3e8ab365732c025ec149b2 (diff) | |
download | lcd4linux-7c0fb2e980af93923f2071e1af087010962e06bd.tar.gz |
Import upstream version 0.11.0~svn1158
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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: |