diff options
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: |