mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-24 06:11:01 +01:00
Merge branch 'obsd-master'
This commit is contained in:
commit
b0372840e7
6
client.c
6
client.c
@ -153,15 +153,19 @@ retry:
|
||||
}
|
||||
fd = server_start(base, lockfd, lockfile);
|
||||
}
|
||||
|
||||
if (locked) {
|
||||
free(lockfile);
|
||||
close(lockfd);
|
||||
}
|
||||
|
||||
setblocking(fd, 0);
|
||||
return (fd);
|
||||
|
||||
failed:
|
||||
if (locked) {
|
||||
free(lockfile);
|
||||
close(lockfd);
|
||||
}
|
||||
close(fd);
|
||||
return (-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user