aboutsummaryrefslogtreecommitdiffstats
path: root/test/pid.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/pid.awk')
-rw-r--r--test/pid.awk11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/pid.awk b/test/pid.awk
index de83dabe..35cc03da 100644
--- a/test/pid.awk
+++ b/test/pid.awk
@@ -25,8 +25,11 @@
#
# ================== pid.awk ============
BEGIN {
- getline pid <"/dev/pid"
- getline ppid <"/dev/ppid"
+# getline pid <"/dev/pid"
+# getline ppid <"/dev/ppid"
+# 12/2001: switch to PROCINFO. ADR
+ pid = PROCINFO["pid"]
+ ppid = PROCINFO["ppid"]
if (pid != ok_pid)
printf "Bad pid %d, wanted %d\n", pid, ok_pid
@@ -39,8 +42,8 @@ BEGIN {
print "PPID ok"
# ADR --- added
- close("/dev/pid")
- close("/dev/ppid")
+# close("/dev/pid")
+# close("/dev/ppid")
print "All Done."
}