53 |
static void |
static void |
54 |
callback_die (SmcConn smc_conn, SmPointer client_data) |
callback_die (SmcConn smc_conn, SmPointer client_data) |
55 |
{ |
{ |
56 |
|
#ifdef DEBUG |
57 |
printf("exiting\n"); |
printf("exiting\n"); |
58 |
|
#endif |
59 |
SmcCloseConnection (smc_conn, 0, NULL); |
SmcCloseConnection (smc_conn, 0, NULL); |
60 |
|
|
61 |
/* this graceful closedown stuff needs to be kept in sync: */ |
/* this graceful closedown stuff needs to be kept in sync: */ |
230 |
|
|
231 |
/* Not really needed... */ |
/* Not really needed... */ |
232 |
fcntl (ice_fd, F_SETFD, fcntl (ice_fd, F_GETFD, 0) | FD_CLOEXEC); |
fcntl (ice_fd, F_SETFD, fcntl (ice_fd, F_GETFD, 0) | FD_CLOEXEC); |
233 |
|
#ifdef DEBUG |
234 |
printf("Connection established!\n"); |
printf("Connection established!\n"); |
235 |
|
#endif |
236 |
} |
} |
237 |
} |
} |
238 |
|
|
251 |
|
|
252 |
if (select (ice_fd + 1, &rd_fds, NULL, NULL, &timeout)) |
if (select (ice_fd + 1, &rd_fds, NULL, NULL, &timeout)) |
253 |
{ |
{ |
254 |
|
#ifdef DEBUG |
255 |
printf("polling\n"); |
printf("polling\n"); |
256 |
|
#endif |
257 |
process_ice_msgs (); |
process_ice_msgs (); |
258 |
} |
} |
259 |
} |
} |