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:
parent
1878ae93fd
commit
1154e69d3e
12 changed files with 31 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue