Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: zftp problem (OS dependent)
- X-seq: zsh-workers 4866
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: RE: zftp problem (OS dependent)
- Date: Thu, 24 Dec 1998 14:10:17 +0300
- Importance: Normal
- In-reply-to: <001501be2eaa$13c41c50$21c9ca95@xxxxxxxxxxxxxxx>
> -----Original Message-----
> From:
> Sent: Wednesday, December 23, 1998 10:26 PM
> To: ZSH workers mailing list
> Subject: zftp problem (OS dependent)
>
>
> I just found a very nice problem here ...
>
> Obviously, my system has a bug, that does not allow zftp open to be called
> second time :-) The problem is related to fcntl(x, F_DUPFD, ...)
> If I remove
> zfmoved(), it works nicely. If zmovefd() is used, the first time I can
> connect; but after that, all connects fail with
>
> "address family is not supported by protocol family"
>
> I admit, that it is OS bug, but it is probably won't be fixed soon ... Is
> there any possible workaround?
>
>
Sorry for followup ...
It looks, that we can duplicate connected socket. It means, that zfmovefd()
should be called after connect succeeds. It seems to be safe, as if connect
fails, we close fd anyway.
Merry Christmas to everybody
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author