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

Diff for /src/usr.bin/cu/command.c between version 1.17 and 1.18

version 1.17, 2019/03/22 07:03:23 version 1.18, 2019/06/28 13:35:00
Line 60 
Line 60 
                 cu_err(1, "fork");                  cu_err(1, "fork");
         case 0:          case 0:
                 fd = open(_PATH_DEVNULL, O_RDWR);                  fd = open(_PATH_DEVNULL, O_RDWR);
                 if (fd < 0 || dup2(fd, STDIN_FILENO) == -1)                  if (fd == -1 || dup2(fd, STDIN_FILENO) == -1)
                         _exit(1);                          _exit(1);
                 close(fd);                  close(fd);
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18