mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-22 05:31:18 +03:00
Error checking for valgrind is redundant since overlapping with other tests
This commit is contained in:
commit
594f1eee02
@ -10,7 +10,6 @@
|
||||
|
||||
# ---------------------------- Tests -----------------------------------
|
||||
|
||||
|
||||
function test_thread_free { #threads
|
||||
echo "Testing creation and destruction of threads(=$1)"
|
||||
compile src/no_work.c
|
||||
|
2
thpool.c
2
thpool.c
@ -308,6 +308,8 @@ static void* thread_do(struct thread* thread_p){
|
||||
|
||||
/* Register signal handler */
|
||||
struct sigaction act;
|
||||
sigemptyset(&act.sa_mask);
|
||||
act.sa_flags = 0;
|
||||
act.sa_handler = thread_hold;
|
||||
if (sigaction(SIGUSR1, &act, NULL) == -1) {
|
||||
fprintf(stderr, "thread_do(): cannot handle SIGUSR1");
|
||||
|
Loading…
Reference in New Issue
Block a user