Print this page
3124 Remove any existing references to utmp, use utmpx instead

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/wall/wall.c
          +++ new/usr/src/cmd/wall/wall.c
↓ open down ↓ 306 lines elided ↑ open up ↑
 307  307          } else {
 308  308                  (void) utmpxname(UTMPX_FILE);
 309  309          }
 310  310          setutxent();
 311  311          while ((p = getutxent()) != NULL) {
 312  312                  if (p->ut_type != USER_PROCESS)
 313  313                          continue;
 314  314                  /*
 315  315                   * if (-a option OR NOT pty window login), send the message
 316  316                   */
 317      -                if (aflag || !nonuser(*p))
      317 +                if (aflag || !nonuserx(*p))
 318  318                          sendmes(p, zid);
 319  319          }
 320  320          endutxent();
 321  321  
 322  322          (void) alarm(60);
 323  323          do {
 324  324                  i = (int)wait((int *)0);
 325  325          } while (i != -1 || errno != ECHILD);
 326  326  
 327  327  }
↓ open down ↓ 171 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX