1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-14 07:23:23 +00:00

writefull() respects total inactivity timeout

This commit is contained in:
Gerhard Rieger 2025-01-10 19:41:34 +01:00
parent 1878ae93fd
commit 1154e69d3e
12 changed files with 31 additions and 15 deletions

View file

@ -52,7 +52,7 @@ int xiogetlock(const char *lockfile) {
pid = Getpid();
bytes = sprintf(pidbuf, F_pid"\n", pid);
if (writefull(fd, pidbuf, bytes) < 0) {
if (writefull(fd, pidbuf, bytes, NULL) < 0) {
Error4("write(%d, %p, "F_Zu"): %s", fd, pidbuf, bytes, strerror(errno));
return -1;
}