[1614] in Athena Bugs

home help back first fref pref prev next nref lref last post

pstat -f returns bogus error return

daemon@ATHENA.MIT.EDU (epeisach@ATHENA.MIT.EDU)
Sun Jan 8 18:54:45 1989

From: <epeisach@ATHENA.MIT.EDU>
Date: Sun, 8 Jan 89 18:54:16 EST
To: bugs@ATHENA.MIT.EDU

John Kohl reported the problem with pstat returning bogus error numbers.
It turns out, it returns bogus numbers except when there is an error.
(When it returns 1).

The following are the quick fixes for pstat on the Vax and the RT. (Add
an exit(0);)

VAX:

E40-342-18% diff -c /paris/source/vax/etc/pstat/pstat.c /tmp/pstat.c
*** /paris/source/vax/etc/pstat/pstat.c Tue Oct 18 15:00:33 1988
--- /tmp/pstat.c        Sun Jan  8 18:38:22 1989
***************
*** 234,239 ****
--- 234,240 ----
                dousr();
        if (swpf||totflg)
                doswap();
+       exit(0);
  }
  
  usage()
E40-342-18% 
script done on Sun Jan  8 18:47:26 1989

RT:

E40-342-18% diff -c /minos/source/rt/etc/pstat.c /tmp/pstat.c
*** /minos/source/rt/etc/pstat.c        Tue Oct 18 14:57:00 1988
--- /tmp/pstat.c        Sun Jan  8 18:52:22 1989
***************
*** 293,298 ****
--- 293,299 ----
                dousr();
        if (swpf||totflg)
                doswap();
+       exit(0);
  }
  
  usage()
script done on Sun Jan  8 18:53:13 1989

home help back first fref pref prev next nref lref last post