version 1.3, 1999/09/29 21:14:15 |
version 1.4, 1999/09/30 08:34:24 |
|
|
if (sock < 0) |
if (sock < 0) |
return -1; |
return -1; |
|
|
if (connect(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0) |
if (connect(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) |
{ |
{ |
close(sock); |
close(sock); |
return -1; |
return -1; |
|
|
/* Dummy alarm used to prevent waiting for connection from the |
/* Dummy alarm used to prevent waiting for connection from the |
authentication agent indefinitely. */ |
authentication agent indefinitely. */ |
|
|
static RETSIGTYPE dummy_alarm_handler(int sig) |
static void dummy_alarm_handler(int sig) |
{ |
{ |
/* Do nothing; a cought signal will just cause accept to return. */ |
/* Do nothing; a cought signal will just cause accept to return. */ |
} |
} |
|
|
int authfd; |
int authfd; |
int listen_sock, sock, port, addrlen; |
int listen_sock, sock, port, addrlen; |
int old_timeout; |
int old_timeout; |
RETSIGTYPE (*old_handler)(); |
void (*old_handler)(); |
struct sockaddr_in sin; |
struct sockaddr_in sin; |
char msg[3]; |
char msg[3]; |
|
|