1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

added pthread cancelation points to pipe

This commit is contained in:
Steffen Vogel 2016-07-11 16:02:32 +02:00
parent 0cc67a892c
commit 5320830b13

View file

@ -119,6 +119,7 @@ retry: reason = sample_fscan(stdin, s, NULL);
}
node_write(node, smps, node->vectorize);
pthread_testcancel();
}
killme: pthread_kill(ptid, SIGINT);
@ -157,6 +158,7 @@ static void * recv_loop(void *ctx)
sample_fprint(stdout, s, SAMPLE_ALL);
fflush(stdout);
}
pthread_testcancel();
}
return NULL;