Recognize net process (3)
authorMichael Toy <toy@ucbvax.Berkeley.EDU>
Wed, 13 May 1981 14:03:56 +0000 (06:03 -0800)
committerMichael Toy <toy@ucbvax.Berkeley.EDU>
Wed, 13 May 1981 14:03:56 +0000 (06:03 -0800)
SCCS-vsn: bin/ps/ps.c 4.11

usr/src/bin/ps/ps.c

index 165f846..4fc8806 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)ps.c        4.10 (Berkeley) %G%";
+static char *sccsid = "@(#)ps.c        4.11 (Berkeley) %G%";
 /*
  * ps; VAX 4BSD version
  */
 /*
  * ps; VAX 4BSD version
  */
@@ -273,6 +273,8 @@ main(argc, argv)
                        printf(" swapper");
                else if (sp->ap->a_pid == 2)
                        printf(" pagedaemon");
                        printf(" swapper");
                else if (sp->ap->a_pid == 2)
                        printf(" pagedaemon");
+               else if (sp->ap->a_pid == 3 && sp->ap->a_flag & SSYS)
+                       printf(" net input");
                else
                        printf(" %.*s", twidth - cmdstart - 2, sp->ap->a_cmdp);
                printf("\n");
                else
                        printf(" %.*s", twidth - cmdstart - 2, sp->ap->a_cmdp);
                printf("\n");