/UPGRADE - upgrade-on-the-fly feature. Currently only moves the active

server connections to the new irssi process, but that should be enough to
never quit from IRC again :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2070 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-19 01:48:58 +00:00 committed by cras
commit bbbb36cf19
11 changed files with 366 additions and 6 deletions

View file

@ -196,10 +196,15 @@ static void server_connect_callback_readpipe(SERVER_REC *server)
own_ip = ip == NULL ? NULL :
(IPADDR_IS_V6(ip) ? conn->own_ip6 : conn->own_ip4);
if (ip != NULL)
signal_emit("server connecting", 2, server, ip);
handle = NULL;
if (ip != NULL) {
/* allow "server connecting" signal to create the
connection handle */
signal_emit("server connecting", 3, server, ip, &handle);
if (handle == NULL)
handle = net_connect_ip(ip, port, own_ip);
}
handle = ip == NULL ? NULL : net_connect_ip(ip, port, own_ip);
if (handle == NULL) {
/* failed */
if (iprec.error != 0 && net_hosterror_notfound(iprec.error)) {