mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-24 06:42: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
|
aclocal
|
||||||
autoconf
|
autoconf
|
||||||
automake --add-missing -c
|
automake --add-missing -c
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifndef __WIN32__
|
#ifndef __WIN32__
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@ -738,6 +739,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
usleep(10);
|
||||||
}
|
}
|
||||||
printf("exiting ... \n");
|
printf("exiting ... \n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user