I
Ilya Zakharevich
How to check that /proc is working on BSD? And check it from Perl?
On Linux and Solaris,
-d "/proc/$$"
is TRUE. Apparently (by indirect guesses from output on CPANtesters),
this does not work on 3 BSD test machines (Open-, Free- and Net-).
Neither does
perl -wle 'open PR, qq(/proc/$$/cmdline) or die $!'
on the only BSD machine I can login into (FreeBSD 7.3).
According to WikiPedia, /proc should be available. According to
FreeBSD manpages, the file /proc/$$/cmdline should be available.
How should I interpret this? Is /proc "very optional", and disabled
by default?
Thanks,
Ilya
P.S. Why do I need to know? Since gdb command set (is documented to)
depends on the fact...
On Linux and Solaris,
-d "/proc/$$"
is TRUE. Apparently (by indirect guesses from output on CPANtesters),
this does not work on 3 BSD test machines (Open-, Free- and Net-).
Neither does
perl -wle 'open PR, qq(/proc/$$/cmdline) or die $!'
on the only BSD machine I can login into (FreeBSD 7.3).
According to WikiPedia, /proc should be available. According to
FreeBSD manpages, the file /proc/$$/cmdline should be available.
How should I interpret this? Is /proc "very optional", and disabled
by default?
Thanks,
Ilya
P.S. Why do I need to know? Since gdb command set (is documented to)
depends on the fact...