mailing list archives
check-ps 1.2 alpha 4 compile fix
From: dps () IO STARGATE CO UK (Duncan Simpson)
Date: Sun, 28 Jun 1998 19:48:30 +0200
-----BEGIN PGP SIGNED MESSAGE-----
It has come to my attention that various people have had trouble with PID_MAX
not being defined by the header file I assumed it was on their linux systems.
I guess this is just punishment for taking 2.1.107 as typical.
Here is a new version of linux_killscan.h that fixes the problem. You want to
use the -c option to wipe out the previous version. Anything else anyone wants
fixed or added in 1.2alpha5 when it gets released?
There is a report the script discovers it is a linux system and then fails to
dipslay he extra information correctly. Could someone with a 2.0.x kernel
investigate (my system runs 2.1.107 and downgrading will hit various required
updates I have done).
# This is a shell archive (produced by GNU sharutils 4.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
# Made on 1998-06-28 19:39 BST by <dps () io>.
# Source directory was `/home/dps/check-ps-1.2'.
# Existing files will *not* be overwritten unless `-c' is specified.
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 336 -r--r--r-- linux_killscan.h
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
echo 'WARNING: not restoring timestamps. Consider getting and'
echo "installing GNU \`touch', distributed in GNU File Utilities..."
rm -f 1231235999 $$.touch
# ============= linux_killscan.h ==============
if test -f 'linux_killscan.h' && test X"$1" != X"-c"; then
echo 'x - skipping linux_killscan.h (file already exists)'
echo 'x - extracting linux_killscan.h (text)'
sed 's/^X//' << 'SHAR_EOF' > 'linux_killscan.h' &&
/* $Id: linux_killscan.h,v 1.3 1998/06/28 18:33:13 dps Exp $ */
/* The following is known about linux */
#define KILL_SCAN_WORKS 1
#define MAX_PROC PID_MAX
#else /* no PID_MAX */
/* Need to apply guesswork */
#define MAX_PROC 0x8000 /* Assumes this has stayed the same */
#endif /* PID_MAX */
$shar_touch -am 0628193398 'linux_killscan.h' &&
chmod 0444 'linux_killscan.h' ||
echo 'restore of linux_killscan.h failed'
shar_count="`wc -c < 'linux_killscan.h'`"
test 336 -eq "$shar_count" ||
echo "linux_killscan.h: original size 336, current size $shar_count"
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
-----END PGP SIGNATURE-----
- check-ps 1.2 alpha 4 compile fix Duncan Simpson (Jun 28)