aboutsummaryrefslogtreecommitdiffstats
path: root/test/pid.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-11-12 12:23:33 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-11-12 12:23:33 +0200
commit40b3741f63c19e38077d57f4ce4737916ec5073e (patch)
tree89e086fabdfc738b379901d86733e6c260c22f35 /test/pid.awk
parent00ef0423acd97cb964a2bae54c93a03a8ab50e5e (diff)
downloadegawk-40b3741f63c19e38077d57f4ce4737916ec5073e.tar.gz
egawk-40b3741f63c19e38077d57f4ce4737916ec5073e.tar.bz2
egawk-40b3741f63c19e38077d57f4ce4737916ec5073e.zip
Bring in development gawk changes.
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."
}