mirror of
https://github.com/utoni/nDPId.git
synced 2026-10-20 02:42:51 +00:00
Fixed (some) issues reported by SonarCloud
Some checks failed
ArchLinux PKGBUILD / build (push) Has been cancelled
CentOs / centos8 (push) Has been cancelled
FreeBSD Build / Build and Test (push) Has been cancelled
RPM Build / build (push) Has been cancelled
Build / macOS-14 cc (push) Has been cancelled
Build / ubuntu-latest clang (push) Has been cancelled
Build / ubuntu-latest clang-1 (push) Has been cancelled
Build / ubuntu-22.04 clang-12 (push) Has been cancelled
Build / ubuntu-latest gcc (push) Has been cancelled
Build / ubuntu-latest gcc-1 (push) Has been cancelled
Build / ubuntu-latest gcc-2 (push) Has been cancelled
Build / ubuntu-22.04 gcc-10 (push) Has been cancelled
Build / ubuntu-22.04 gcc-9 (push) Has been cancelled
SonarQube Scan / Build and analyze (push) Has been cancelled
Some checks failed
ArchLinux PKGBUILD / build (push) Has been cancelled
CentOs / centos8 (push) Has been cancelled
FreeBSD Build / Build and Test (push) Has been cancelled
RPM Build / build (push) Has been cancelled
Build / macOS-14 cc (push) Has been cancelled
Build / ubuntu-latest clang (push) Has been cancelled
Build / ubuntu-latest clang-1 (push) Has been cancelled
Build / ubuntu-22.04 clang-12 (push) Has been cancelled
Build / ubuntu-latest gcc (push) Has been cancelled
Build / ubuntu-latest gcc-1 (push) Has been cancelled
Build / ubuntu-latest gcc-2 (push) Has been cancelled
Build / ubuntu-22.04 gcc-10 (push) Has been cancelled
Build / ubuntu-22.04 gcc-9 (push) Has been cancelled
SonarQube Scan / Build and analyze (push) Has been cancelled
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
parent
b3330b5907
commit
b5bdcebbce
2 changed files with 7 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ WORKDIR /root
|
|||
RUN apt-get -y update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
autoconf automake build-essential ca-certificates cmake git \
|
||||
libpcap-dev libcurl4-openssl-dev libdbus-1-dev libtool make pkg-config unzip wget \
|
||||
libcurl4-openssl-dev libdbus-1-dev libpcap-dev libtool make pkg-config unzip wget \
|
||||
&& apt-get clean \
|
||||
&& git clone https://github.com/utoni/nDPId.git
|
||||
|
||||
|
|
|
|||
8
nDPId.c
8
nDPId.c
|
|
@ -670,7 +670,9 @@ static int set_collector_nonblock(struct nDPId_reader_thread * const reader_thre
|
|||
{
|
||||
int current_flags;
|
||||
|
||||
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {}
|
||||
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {
|
||||
// Retry if interrupted by a signal.
|
||||
}
|
||||
if (current_flags == -1) {
|
||||
reader_thread->collector_sock_last_errno = errno;
|
||||
logger(1,
|
||||
|
|
@ -704,7 +706,9 @@ static int set_collector_block(struct nDPId_reader_thread * const reader_thread)
|
|||
{
|
||||
int current_flags;
|
||||
|
||||
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {}
|
||||
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {
|
||||
// Retry if interrupted by a signal.
|
||||
}
|
||||
if (current_flags == -1) {
|
||||
reader_thread->collector_sock_last_errno = errno;
|
||||
logger(1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue