1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-11 08:21:13 +01:00

remove builtin when tcp module is unloaded.

This commit is contained in:
Peter Stephenson 2002-06-05 21:02:34 +00:00
parent 682d83503b
commit b2226ac72f
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2002-06-05 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 17294: Src/Modules/tcp.c: remove session even if closing fd
failed; remove builtin from hash table when unloading module.
2002-06-05 Peter Stephenson <pws@csr.com>
* 17292: Src/builtin.c: shut up compiler if no OPEN_MEMSTREAM.

View file

@ -299,10 +299,7 @@ tcp_close(Tcp_session sess)
{
err = close(sess->fd);
if (err)
{
zwarn("connection close failed: %e", NULL, errno);
return -1;
}
}
zts_delete(sess);
return 0;
@ -701,6 +698,7 @@ int
cleanup_(Module m)
{
tcp_cleanup();
deletebuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab));
freelinklist(ztcp_sessions, (FreeFunc) ztcp_free_session);
return 0;
}