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

Diff for /src/usr.bin/ftp/ftp.c between version 1.80 and 1.81

version 1.80, 2010/07/02 22:01:10 version 1.81, 2010/09/03 03:49:37
Line 1995 
Line 1995 
 abort_remote(FILE *din)  abort_remote(FILE *din)
 {  {
         char buf[BUFSIZ];          char buf[BUFSIZ];
           nfds_t nfds;
         int nfnd;          int nfnd;
         struct pollfd pfd[2];          struct pollfd pfd[2];
         sig_t oldintr;          sig_t oldintr;
Line 2020 
Line 2021 
         (void)fflush(cout);          (void)fflush(cout);
         pfd[0].fd = fileno(cin);          pfd[0].fd = fileno(cin);
         pfd[0].events = POLLIN;          pfd[0].events = POLLIN;
         nfnd = 1;          nfds = 1;
         if (din) {          if (din) {
                 pfd[1].fd = fileno(din);                  pfd[1].fd = fileno(din);
                 pfd[1].events = POLLIN;                  pfd[1].events = POLLIN;
                 nfnd++;                  nfds++;
         }          }
         if ((nfnd = poll(pfd, nfnd, 10 * 1000)) <= 0) {          if ((nfnd = poll(pfd, nfds, 10 * 1000)) <= 0) {
                 if (nfnd < 0)                  if (nfnd < 0)
                         warn("abort");                          warn("abort");
                 if (ptabflg)                  if (ptabflg)

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81