/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2008-08-11 20:16:35 UTC
  • mfrom: (24.1.45 mandos)
  • Revision ID: teddy@fukt.bsnet.se-20080811201635-1vor0gz43trtily1
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
                                      .sa_flags = SA_NOCLDSTOP };
203
203
  char *plus_options = NULL;
204
204
  char **plus_argv = NULL;
205
 
  
 
205
 
206
206
  /* Establish a signal handler */
207
207
  sigemptyset(&sigchld_action.sa_mask);
208
208
  ret = sigaddset(&sigchld_action.sa_mask, SIGCHLD);
708
708
      }
709
709
    }
710
710
  }
 
711
 
 
712
 
 
713
 end:
711
714
  
712
 
  if(process_list == NULL){
 
715
  if(process_list == NULL or exitstatus != EXIT_SUCCESS){
 
716
    /* Fallback if all plugins failed or an error occured */
713
717
    bool bret;
714
718
    fprintf(stderr, "Going to fallback mode using getpass(3)\n");
715
719
    char *passwordbuffer = getpass("Password: ");
720
724
      goto end;
721
725
    }
722
726
  }
723
 
 
724
 
 end:
725
727
  
726
728
  /* Restore old signal handler */
727
729
  sigaction(SIGCHLD, &old_sigchld_action, NULL);