aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index c49f297..ddeea82 100644
--- a/thread.c
+++ b/thread.c
@@ -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: