nxlink: Fix CPU usage in busy loop

This commit is contained in:
averne 2019-09-22 15:33:29 +02:00
parent 026ed556df
commit c04708b3e7
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
aclocal
autoconf
automake --add-missing -c

View File

@ -8,6 +8,7 @@
#include <fcntl.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#ifndef __WIN32__
#include <sys/socket.h>
@ -738,6 +739,7 @@ int main(int argc, char **argv) {
}
}
}
usleep(10);
}
printf("exiting ... \n");
}