54 |
callback_die (SmcConn smc_conn, SmPointer client_data) |
callback_die (SmcConn smc_conn, SmPointer client_data) |
55 |
{ |
{ |
56 |
#ifdef DEBUG |
#ifdef DEBUG |
57 |
printf("exiting\n"); |
printf ("exiting\n"); |
58 |
#endif |
#endif |
59 |
SmcCloseConnection (smc_conn, 0, NULL); |
SmcCloseConnection (smc_conn, 0, NULL); |
60 |
|
|
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 |
#ifdef DEBUG |
234 |
printf("Connection established!\n"); |
printf ("Connection established!\n"); |
235 |
#endif |
#endif |
236 |
} |
} |
237 |
} |
} |
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 |
#ifdef DEBUG |
255 |
printf("polling\n"); |
printf ("polling\n"); |
256 |
#endif |
#endif |
257 |
process_ice_msgs (); |
process_ice_msgs (); |
258 |
} |
} |