mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-23 14:22:40 +02:00
nxlink: Fix CPU usage in busy loop
This commit is contained in:
parent
026ed556df
commit
c04708b3e7
@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing -c
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user