3 ms·
6 digit PIDs? These aren't actually stored in decimal, right?
by lallysingh 9y ago
6 digit PIDs? These aren't actually stored in decimal, right?
- jrbancel 9y agoNo, but they are constrained to be less than or equal to 999,999. See http://gitweb.dragonflybsd.org/dragonfly.git/blob/586c43085fc900273732f99de6c9ef43f73ded76:/sys/sys/proc.h#l445 http://gitweb.dragonflybsd.org/dragonfly.git/blob/586c43085f...
- jlgaddis 9y agosigned int, IIRC (cf. pid_t)
- fanf2 9y agoWhen FreeBSD moved from 16 bit PIDs to 5 digit PIDs back in about 1999, I got the impression that one reason for not using the full 32 bit space was compatibility with tabular formatting in lots of userspace tools.