Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max PID on AIX 5.1

Status
Not open for further replies.

Noltmier

Programmer
Oct 9, 2002
6
US
How do I set up a max PID on an Unix box running Aix 5.1?

We are having PIDs of 7 digits, and unfortunately one of our software packages uses the PID and only handles up to 6 digits.

Thanks.
 
hello,

is it a software you develop yourself ??

you probably have 7 digit processes ID because running in a 64 bit kernel (type bootinfo -K, and if it returns 64 you are actually running the 64 bit kernel).

You'd better store pid numbers with pid_t data type , whatever kernel type you use, eg :

main (){
/* Get the pid of myself */
pid_t my_pid;
my_pid=getpid();
}

If this is not an application you develop yourself, well it's a bug from the software vendor :))

regards
 
Thanks,

Unfortunately it is not software we developed. I was hoping there was a way to change it in AIX to only use 6 digits. I guess I will have to rag on our vendor.
 
hi..
just a correction
bootinfo -y (should return 64 bit ) bootinfo -k (returns key switch 1=secure 2=service & 3=normal
Or better run = lslpp -l bos.64bit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top