diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-08-26 09:26:25 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-08-26 09:26:25 +0200 |
commit | 37bc217dceb95a538be6d297c1deae821bfe0fb7 (patch) | |
tree | 6bbc6d4be5b91291218c2095147fc36788977585 /thread.c | |
parent | 7544d6152d8fb4e3804806eb0202222540f2c99c (diff) | |
parent | 7c0fb2e980af93923f2071e1af087010962e06bd (diff) | |
download | lcd4linux-37bc217dceb95a538be6d297c1deae821bfe0fb7.tar.gz |
New upstream version
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: |