Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: zftp problem (OS dependent)

> -----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


Messages sorted by: Reverse Date, Date, Thread, Author