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

Diff for /src/usr.bin/mail/cmd2.c between version 1.15 and 1.16

version 1.15, 2004/09/15 22:21:40 version 1.16, 2009/07/28 16:05:04
Line 346 
Line 346 
 }  }
   
 /*  /*
  * Interactively dump core on "core"  
  */  
 int  
 core(void *v)  
 {  
         pid_t pid;  
         extern int wait_status;  
   
         switch (pid = vfork()) {  
         case -1:  
                 warn("vfork");  
                 return(1);  
         case 0:  
                 abort();  
                 _exit(1);  
         }  
         fputs("Okie dokie", stdout);  
         fflush(stdout);  
         wait_child(pid);  
         if (WIFSIGNALED(wait_status) && WCOREDUMP(wait_status))  
                 puts(" -- Core dumped.");  
         else  
                 puts(" -- Can't dump core.");  
         return(0);  
 }  
   
 /*  
  * Add the given header fields to the retained list.   * Add the given header fields to the retained list.
  * If no arguments, print the current list of retained fields.   * If no arguments, print the current list of retained fields.
  */   */

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16