mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +01:00
18202: New TCP function system plus small error message change in ztcp.
This commit is contained in:
parent
809ab19dff
commit
5c1f3b65a6
27 changed files with 2139 additions and 5 deletions
|
|
@ -433,7 +433,9 @@ bin_ztcp(char *nam, char **args, Options ops, int func)
|
|||
|
||||
if (bind(sess->fd, (struct sockaddr *)&sess->sock.in, sizeof(struct sockaddr_in)))
|
||||
{
|
||||
zwarnnam(nam, "could not bind to %s: %e", "0.0.0.0", errno);
|
||||
char buf[DIGBUFSIZE];
|
||||
convbase(buf, (zlong)lport, 10);
|
||||
zwarnnam(nam, "could not bind to port %s: %e", buf, errno);
|
||||
tcp_close(sess);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue