[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.6 and 1.7

version 1.6, 1997/07/30 07:19:29 version 1.7, 1997/08/31 14:32:13
Line 383 
Line 383 
         void *v;          void *v;
 {  {
         int pid;          int pid;
         extern union wait wait_status;          extern int wait_status;
   
         switch (pid = vfork()) {          switch (pid = vfork()) {
         case -1:          case -1:
Line 396 
Line 396 
         fputs("Okie dokie", stdout);          fputs("Okie dokie", stdout);
         fflush(stdout);          fflush(stdout);
         wait_child(pid);          wait_child(pid);
         if (wait_status.w_coredump)          if (WIFSIGNALED(wait_status) && WCOREDUMP(wait_status))
                 puts(" -- Core dumped.");                  puts(" -- Core dumped.");
         else          else
                 puts(" -- Can't dump core.");                  puts(" -- Can't dump core.");

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7