Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r37d188f r4fd211f  
    29592959 
    29602960  if (viewsize==0) {
    2961     owl_function_error("No messages present");
     2961    owl_function_makemsg("No messages present");
    29622962    return;
    29632963  }
     
    29732973  /* bounds check */
    29742974  if (start>=viewsize || start<0) {
    2975     owl_function_error("No further matches found");
     2975    owl_function_makemsg("No further matches found");
    29762976    return;
    29772977  }
     
    29952995      i--;
    29962996    }
    2997     if (owl_global_take_interrupt(&g)) {
     2997    owl_function_mask_sigint(NULL);
     2998    if(owl_global_is_interrupted(&g)) {
     2999      owl_global_unset_interrupted(&g);
     3000      owl_function_unmask_sigint(NULL);
    29983001      owl_function_makemsg("Search interrupted!");
    29993002      owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    30003003      return;
    30013004    }
     3005    owl_function_unmask_sigint(NULL);
    30023006  }
    30033007  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    3004   owl_function_error("No matches found");
     3008  owl_function_makemsg("No matches found");
    30053009}
    30063010
     
    30823086          ret=ZLocateUser(zstr(user), &numlocs, ZAUTH);
    30833087
    3084           if (owl_global_take_interrupt(&g)) {
     3088          owl_function_mask_sigint(NULL);
     3089          if(owl_global_is_interrupted(&g)) {
    30853090            interrupted = 1;
     3091            owl_global_unset_interrupted(&g);
     3092            owl_function_unmask_sigint(NULL);
    30863093            owl_function_makemsg("Interrupted!");
    30873094            break;
    30883095          }
     3096
     3097          owl_function_unmask_sigint(NULL);
    30893098
    30903099          if (ret!=ZERR_NONE) {
     
    34913500}
    34923501
     3502void owl_function_mask_sigint(sigset_t *oldmask) {
     3503  sigset_t intr;
     3504
     3505  sigemptyset(&intr);
     3506  sigaddset(&intr, SIGINT);
     3507  sigprocmask(SIG_BLOCK, &intr, oldmask);
     3508}
     3509
     3510void owl_function_unmask_sigint(sigset_t *oldmask) {
     3511  sigset_t intr;
     3512
     3513  sigemptyset(&intr);
     3514  sigaddset(&intr, SIGINT);
     3515  sigprocmask(SIG_UNBLOCK, &intr, oldmask);
     3516}
     3517
    34933518void _owl_function_mark_message(const owl_message *m)
    34943519{
Note: See TracChangeset for help on using the changeset viewer.