Close socket opened by zsocket in zsh -
i've done:
% zmodload zsh/net/socket % zsocket -d 20 my_socket # used socket bit
now how close socket's fd? (fd 20 here.)
here's mailing list post zsocket
:
as far can see there's no way of closing file descriptors using zsocket, seems omission. presumably can use "exec 3>&-" etc. although close file descriptor on 9 need like:
% fd=11 % exec {fd}>&-
i don't know exec &-
does, try:
fd=20 exec {fd}>&-
Comments
Post a Comment