[BACK]Return to edit.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/edit.c between version 1.9 and 1.10

version 1.9, 2001/01/19 04:11:28 version 1.10, 2001/11/20 20:50:00
Line 88 
Line 88 
 {  {
         int c, i;          int c, i;
         FILE *fp;          FILE *fp;
           struct sigaction oact;
           sigset_t oset;
         struct message *mp;          struct message *mp;
         off_t size;          off_t size;
   
Line 95 
Line 97 
          * Deal with each message to be edited . . .           * Deal with each message to be edited . . .
          */           */
         for (i = 0; msgvec[i] && i < msgCount; i++) {          for (i = 0; msgvec[i] && i < msgCount; i++) {
                 sig_t sigint;  
   
                 if (i > 0) {                  if (i > 0) {
                         char buf[100];                          char buf[100];
                         char *p;                          char *p;
Line 113 
Line 113 
                 }                  }
                 dot = mp = &message[msgvec[i] - 1];                  dot = mp = &message[msgvec[i] - 1];
                 touch(mp);                  touch(mp);
                 sigint = signal(SIGINT, SIG_IGN);                  (void)ignoresig(SIGINT, &oact, &oset);
                 fp = run_editor(setinput(mp), mp->m_size, type, readonly);                  fp = run_editor(setinput(mp), mp->m_size, type, readonly);
                 if (fp != NULL) {                  if (fp != NULL) {
                         (void)fseek(otf, 0L, 2);                          (void)fseek(otf, 0L, 2);
Line 134 
Line 134 
                                 warn("/tmp");                                  warn("/tmp");
                         (void)Fclose(fp);                          (void)Fclose(fp);
                 }                  }
                 (void)signal(SIGINT, sigint);                  (void)sigprocmask(SIG_SETMASK, &oset, NULL);
                   (void)sigaction(SIGINT, &oact, NULL);
         }          }
         return(0);          return(0);
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10