Print this page
3910 t_look(3NSL) should never return T_ERROR

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/avs/rdc/sndrd.c
          +++ new/usr/src/cmd/avs/rdc/sndrd.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  /*
  27   27   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       28 + * Copyright 2014 Gary Mills
  28   29   */
  29   30  
  30   31  /*
  31   32   * Network SNDR/ncall-ip server - based on nfsd
  32   33   */
  33   34  #include <sys/types.h>
  34   35  #include <rpc/types.h>
  35   36  #include <errno.h>
  36   37  #include <netdb.h>
  37   38  #include <sys/socket.h>
↓ open down ↓ 1233 lines elided ↑ open up ↑
1271 1272                                  rdcd_log_tli_error("t_rcvdis", fd, nconf);
1272 1273  
1273 1274                          /*
1274 1275                           * T_DISCONNECT on listen fd's should be ignored.
1275 1276                           */
1276 1277                          if (!is_listen_fd_index(fd))
1277 1278                                  break;
1278 1279                          else
1279 1280                                  goto fdclose;
1280 1281  
1281      -                case T_ERROR:
1282 1282                  default:
1283      -                        if (event == T_ERROR || t_errno == TSYSERR) {
     1283 +                        if (t_errno == TSYSERR) {
1284 1284                                  if ((errorstr = strerror(errno)) == NULL) {
1285 1285                                          (void) snprintf(buf, sizeof (buf),
1286 1286                                              "Unknown error num %d", errno);
1287 1287                                          errorstr = (const char *)buf;
1288 1288                                  }
1289 1289                          } else if (event == -1)
1290 1290                                  errorstr = t_strerror(t_errno);
1291 1291                          else
1292 1292                                  errorstr = "";
1293 1293  #ifdef DEBUG
↓ open down ↓ 720 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX