mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
Don't warn when SO_PRIORITY fails
This commit is contained in:
parent
07d46f9907
commit
4faf06aae7
6
netio.c
6
netio.c
@ -398,9 +398,9 @@ void set_sock_priority(int sock, enum dropbear_prio prio) {
|
||||
}
|
||||
/* linux specific, sets QoS class. see tc-prio(8) */
|
||||
rc = setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &so_prio_val, sizeof(so_prio_val));
|
||||
if (rc < 0 && errno != ENOTSOCK)
|
||||
dropbear_log(LOG_WARNING, "Couldn't set SO_PRIORITY (%s)",
|
||||
strerror(errno));
|
||||
if (rc < 0 && errno != ENOTSOCK) {
|
||||
TRACE(("Couldn't set SO_PRIORITY (%s)", strerror(errno)))
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user