Changeset ced25d1 for owl.c


Ignore:
Timestamp:
Feb 21, 2003, 10:31:16 AM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2c8d62e
Parents:
060b3b4
Message:
In the zlist function, give a more detailed error message if
  the file cannot be opened.
Renamed old instances of zsig_exec in the code to zsigproc
Don't print the stderr from zsigproc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r89426ab rced25d1  
    3030  owl_editwin *tw;
    3131  owl_popwin *pw;
    32   int j, ret, initialsubs, debug, newzephyrs, argcsave, followlast, nexttimediff;
     32  int j, ret, initialsubs, debug, argcsave, followlast;
     33  int newzephyrs, zpendcount, nexttimediff;
    3334  struct sigaction sigact;
    3435  char *configfile, *tty, *perlout, **argvsave, buff[LINE], startupmsg[LINE];
     
    127128  owl_context_set_readconfig(owl_global_get_context(&g));
    128129
     130  /* set the tty, either from the command line, or by figuring it out */
    129131  if (tty) {
    130132    owl_global_set_tty(&g, tty);
     
    180182    exit(1);
    181183  }
     184
     185  /* execute the startup function in the configfile */
    182186  perlout = owl_config_execute("owl::startup();");
    183187  if (perlout) owl_free(perlout);
     
    220224  strcat(startupmsg, "Please report any bugs or suggestions to bug-owl@mit.edu          (   )  \n");
    221225  strcat(startupmsg, "-------------------------------------------------------------------m-m---\n");
    222  
    223226  owl_function_adminmsg("", startupmsg);
    224227  sepbar(NULL);
     
    260263    /* grab incoming zephyrs */
    261264    newzephyrs=0;
     265    zpendcount=0;
    262266    while(ZPending()) {
    263267      ZNotice_t notice;
     
    265269      owl_message *m;
    266270
     271      /* grab a notice, but if we've done 20 without stopping, take
     272         a break to process keystrokes etc. */
     273      if (zpendcount>20) break;
    267274      ZReceiveNotice(&notice, &from);
     275      zpendcount++;
    268276
    269277      /* is this an ack from a zephyr we sent? */
     
    330338    }
    331339
    332     /* check if newmsgproc is active, if not but the option is on,
    333        make it active */
     340    /* do the newmsgproc thing */
    334341    if (newzephyrs) {
    335342      owl_function_do_newmsgproc();
     
    337344   
    338345    /* redisplay if necessary */
     346    /* maybe this should be optimized to not even run if
     347       the zephyr won't be displayed */
    339348    if (newzephyrs) {
    340349      owl_mainwin_redisplay(owl_global_get_mainwin(&g));
Note: See TracChangeset for help on using the changeset viewer.