/[oroborus]/oroborus/src/session.c
ViewVC logotype

Diff of /oroborus/src/session.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dreamind, Fri Jan 31 06:18:34 2003 UTC revision 1.2 by dreamind, Tue Feb 4 21:43:11 2003 UTC
# Line 53  static char *command = NULL; Line 53  static char *command = NULL;
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: */
# Line 228  session_init (char *argv0, char *id) Line 230  session_init (char *argv0, char *id)
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    
# Line 247  poll_ice_msgs (void) Line 251  poll_ice_msgs (void)
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                  }                  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26