Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

We come to bury DOS, not to praise it. -- Paul Vojta, vojta@math.berkeley.edu


devel / comp.lang.awk / PROCINFO on Windows... (Was: PROCINFO["pgrpid"])

SubjectAuthor
* PROCINFO["pgrpid"]Kenny McCormack
`* Re: PROCINFO["pgrpid"]J Naman
 `- PROCINFO on Windows... (Was: PROCINFO["pgrpid"])Kenny McCormack

1
PROCINFO["pgrpid"]

<tmnst0$va8j$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1348&group=comp.lang.awk#1348

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.awk
Subject: PROCINFO["pgrpid"]
Date: Tue, 6 Dec 2022 17:07:44 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <tmnst0$va8j$1@news.xmission.com>
Injection-Date: Tue, 6 Dec 2022 17:07:44 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1026323"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Tue, 6 Dec 2022 17:07 UTC

Was playing around with it today, and noticed that while you can assign to
it (i.e., it is not "read-only" in GAWK terms), changing it does not
actually change the process group ID. Would be nice if it did. I.e.,
setting that array element would cause GAWK to invoke the appropriate
setpgid() call to change GAWK's process group ID [*].

Note, incidentally, that (as currently written, that is, w/o the
improvement suggested above) changing that array element would render false
the assertion (in the man page) that the array element contains "The value
of the getpgrp() system call.". Implementing the suggested change would
maintain the accuracy of that assertion.

BTW, what sort of contents does this (and similar) PROCINFO element(s)
contain on non-Unix/Linux system (e.g., a "native" Windows port - not
Cygwin, of course, where, I expect, it would return sensible values as
under Unix/Linux) ?

[*] Note that I can, of course, change the process group ID of a GAWK
program, using the call_any() extension, but this is not available to most
users.

--
That's the Trump playbook. Every action by Trump or his supporters can
be categorized as one (or more) of:

outrageous, incompetent, or mentally ill.

Re: PROCINFO["pgrpid"]

<44931e35-d832-49dc-8033-d7aea039d428n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1349&group=comp.lang.awk#1349

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:ac8:7fc3:0:b0:35d:42d0:25f with SMTP id b3-20020ac87fc3000000b0035d42d0025fmr66481632qtk.18.1670375389385;
Tue, 06 Dec 2022 17:09:49 -0800 (PST)
X-Received: by 2002:a4a:ad49:0:b0:49b:c0e:3d5f with SMTP id
s9-20020a4aad49000000b0049b0c0e3d5fmr38012410oon.69.1670375389076; Tue, 06
Dec 2022 17:09:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Tue, 6 Dec 2022 17:09:48 -0800 (PST)
In-Reply-To: <tmnst0$va8j$1@news.xmission.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.73.185.254; posting-account=BcR7vAoAAABY9YgIIYIhD68t7wwjMvJW
NNTP-Posting-Host: 173.73.185.254
References: <tmnst0$va8j$1@news.xmission.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <44931e35-d832-49dc-8033-d7aea039d428n@googlegroups.com>
Subject: Re: PROCINFO["pgrpid"]
From: jnaman2@gmail.com (J Naman)
Injection-Date: Wed, 07 Dec 2022 01:09:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2934
 by: J Naman - Wed, 7 Dec 2022 01:09 UTC

On Tuesday, 6 December 2022 at 12:07:47 UTC-5, Kenny McCormack wrote:
> Was playing around with it today, and noticed that while you can assign to
> it (i.e., it is not "read-only" in GAWK terms), changing it does not
> actually change the process group ID. Would be nice if it did. I.e.,
> setting that array element would cause GAWK to invoke the appropriate
> setpgid() call to change GAWK's process group ID [*].
>
> Note, incidentally, that (as currently written, that is, w/o the
> improvement suggested above) changing that array element would render false
> the assertion (in the man page) that the array element contains "The value
> of the getpgrp() system call.". Implementing the suggested change would
> maintain the accuracy of that assertion.
>
> BTW, what sort of contents does this (and similar) PROCINFO element(s)
> contain on non-Unix/Linux system (e.g., a "native" Windows port - not
> Cygwin, of course, where, I expect, it would return sensible values as
> under Unix/Linux) ?
>
> [*] Note that I can, of course, change the process group ID of a GAWK
> program, using the call_any() extension, but this is not available to most
> users.
>
> --
> That's the Trump playbook. Every action by Trump or his supporters can
> be categorized as one (or more) of:
>
> outrageous, incompetent, or mentally ill.

RE: contents of PROCINFO element(s) on non-Unix/Linux system

OS: Windows_NT = Win 7 SP1 [Version 6.1.7601]
Machine: x86(32-bit gawk) under a 64-bit OS

PROCINFO["platform"]= mingw
PROCINFO["ppid"]= 0
PROCINFO["pgrpid"]= 0
PROCINFO["gid"]= 0
PROCINFO["egid"]= 0
PROCINFO["uid"]= 0
PROCINFO["euid"]= 0
PROCINFO["pid"]= 6272 (which is a legit pid)

Gawk Version: GNU Awk 5.2.1, API 3.2, (GNU MPFR 4.0.2, GNU MP 6.1.2)
Date: Tue Dec 06 2022 20:54:26 UTC Tue Dec 06 2022 15:54:26 -0500 EST

PROCINFO on Windows... (Was: PROCINFO["pgrpid"])

<tmpg81$104ff$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1350&group=comp.lang.awk#1350

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.awk
Subject: PROCINFO on Windows... (Was: PROCINFO["pgrpid"])
Date: Wed, 7 Dec 2022 07:44:01 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <tmpg81$104ff$1@news.xmission.com>
References: <tmnst0$va8j$1@news.xmission.com> <44931e35-d832-49dc-8033-d7aea039d428n@googlegroups.com>
Injection-Date: Wed, 7 Dec 2022 07:44:01 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1053167"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Wed, 7 Dec 2022 07:44 UTC

In article <44931e35-d832-49dc-8033-d7aea039d428n@googlegroups.com>,
....
>RE: contents of PROCINFO element(s) on non-Unix/Linux system
>
>OS: Windows_NT = Win 7 SP1 [Version 6.1.7601]
>Machine: x86(32-bit gawk) under a 64-bit OS
>
>PROCINFO["platform"]= mingw
>PROCINFO["ppid"]= 0
>PROCINFO["pgrpid"]= 0
>PROCINFO["gid"]= 0
>PROCINFO["egid"]= 0
>PROCINFO["uid"]= 0
>PROCINFO["euid"]= 0
>PROCINFO["pid"]= 6272 (which is a legit pid)
>
>Gawk Version: GNU Awk 5.2.1, API 3.2, (GNU MPFR 4.0.2, GNU MP 6.1.2)
>Date: Tue Dec 06 2022 20:54:26 UTC Tue Dec 06 2022 15:54:26 -0500 EST

OK, thanks.

It's about what I would have expected.

Just out of curiosity, from whence did your version of GAWK come?
Who compiled it?

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Seriously

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor