I have no idea what happened to the first time I posted this. Anyway, here it
is again.
There is a bug in ps. The patch is below. I have mailed the author and he
promises it'll be in 0.99b.
Hope the patch is good. I know it works, just not too sure of myself when
making patches.
BTW, ps -t isn't really a valid command! ps -t1 is.
ps --help reveals:
usage: ps -acehjlnrsSuvwx{t<tty>|#|O[-]u[-]U..}
---------------- cut here -----------------------
--- ps.c Fri May 3 20:45:44 1996
+++ /usr/local/src/procps-0.99a/ps.c Sat Feb 24 14:50:04 1996
@@ -239,7 +239,7 @@
if (CL_run_only) { pflags |= PROC_STAT; args = "RD"; }
if (!CL_all) { pflags |= PROC_UID; args = uid; uid[0] = getuid(); pflags &= ~PROC_STAT; }
if (CL_pids) { pflags |= PROC_PID; args = CL_pids; pflags &= ~PROC_UID; pflags &= ~PROC_STAT; }
- if (CL_ctty && *CL_ctty != '\0') {
+ if (CL_ctty) {
if ((tty[0] = tty_to_dev(CL_ctty)) == (dev_t)-1) {
fprintf(stderr, "the name `%s' is not a tty\n", CL_ctty);
exit(1);
---------------- cut here -----------------------
-- mailto:rwuest@ix.netcom.com Empowered by Linux. mke2fs /dev/hda1