*BSD News Article 5684


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!spool.mu.edu!agate!stanford.edu!rutgers!ub!dsinc!pitt.edu!drycas.club.cc.cmu.edu!ghod
From: ghod@drycas.club.cc.cmu.edu
Newsgroups: comp.unix.bsd
Subject: Re: [386BSD] fixing ps: major/minor numbers for /dev/console wrong?
Message-ID: <1992Sep27.222353.2163@drycas.club.cc.cmu.edu>
Date: 28 Sep 92 03:23:53 GMT
References: <1992Sep27.155125.2160@drycas.club.cc.cmu.edu> <wutcd.717632941@hadrian>
Organization: Carnegie Mellon Computer Club
Lines: 37

In article <wutcd.717632941@hadrian>, wutcd@chemnitz.guug.de (Joerg Wunsch) 
writes:
> ghod@drycas.club.cc.cmu.edu writes:
> 
>>Greetings...
> greetings return:-)
> 
>> [some ps trouble...]
> 
>> [1) some names not found...]
>>Problem #1 is not, ps's fault: it's the kernel. The stock kernel in the 0.1
>>...
> Okay, it's quiet clear: the dist kernel had to fit onto a diskette:-)
> 

Actually, this was a true honest to goodness bug, not an attempt to whittle
the kernel down to fit onto the distrubution diskette. The kernel on dist.fs
is slightly larger than 400 Kbytes. The one I ftp'ed from
rachel.ibmpcug.co.uk was about 380 Kbytes, and included more drivers than the
stock kernel. Go figure. :)

Also, upon further investigation, ps's inability to print command line args
doesn't appear to be due to a bug in its code. The call used to get the 
arguments from the kernel is kvm_getargs(), which I'm assuming is related
to the kvm_getcmd() call in SunOS. kvm_getargs() seems to return only the
command name, not the command line args, so I guess the solution will indeed
lie in some kernel hacking. Unfortunately, I don't have the space to build
a new kernel (and with only a 16Mhz 386SX it would probably take days :)
so I guess I'll just have to wait for the next release or patch.

--Bill Paul
Assistant System Administrator
New Windsor Associates L.P.

	ghod@drycas.club.cc.cmu.edu  -or-  ghod@drycas.bitnet

	"A black hole is what happens when god divides by zero."