Skip to content

Commit

Permalink
Potential fix for #17 - make sure poll result is updated before the t…
Browse files Browse the repository at this point in the history
…hread exists, so that it does not point to thread storage any more.

+ also updated .gitignore
  • Loading branch information
ayurchen committed Jan 24, 2016
1 parent b13985b commit 4a65cfb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Object files
*.o
*.lo

# Libraries
*.lib
*.a
*.la

# Shared objects (inc. Windows DLLs)
*.dll
Expand All @@ -16,3 +18,30 @@
*.out
*.app
.svn

# Temporaries
INSTALL
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
compile
config.*
configure
depcomp
install-sh
libtool
ltmain.sh
missing
src/.deps/
src/.libs/
src/glbd
stamp-h1

# Packages
description-pak
doc-pak/
*.tgz
*.gz
*.deb
*.rpm
4 changes: 2 additions & 2 deletions src/glb_wdog_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ exec_thread (void* arg)
}
ctx->waiting = 0;

if (ctx->errn) break;
ctx->result = r;

ctx->result = r;
if (ctx->errn) break;

if (ETIMEDOUT != pthread_cond_timedwait (&ctx->cond, &ctx->lock, &next))
{
Expand Down

0 comments on commit 4a65cfb

Please sign in to comment.