commit 7c8dc6bb3b82aed578ba2aa59e5bd929bb08ffe7
parent 932a607b50edceb9c7b1ed3b2bf7a058ce5afe9b
Author: deurzen <m.deurzen@tum.de>
Date: Mon, 30 Nov 2020 01:35:07 +0100
Merge branch 'master' of github.com:deurzen/rootkit-programming-dev
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/backdoor.c b/src/backdoor.c
@@ -65,6 +65,8 @@ unbackdoor(void)
int cur;
+ //Sleeping here is very important, as without it
+ //we would stall the CPU..
while ((cur = atomic_read(&read_count)) > 0) {
DEBUG_INFO("Waiting for %d tasks", cur);
msleep(250);