develooper Front page | perl.perl5.porters | Postings from May 2010

Re: [perl #74504] [PATCH 2/2] Document prctl() via $0 assignment (7636ea95c5) in perldelta

Thread Previous
From:
Joshua Juran
Date:
May 3, 2010 00:48
Subject:
Re: [perl #74504] [PATCH 2/2] Document prctl() via $0 assignment (7636ea95c5) in perldelta
Message ID:
CD59A3EC-1385-42F9-959A-78FB8D355307@gmail.com
On Apr 19, 2010, at 12:28 PM, (Ævar Arnfjörð Bjarmason) (via RT) wrote:

> From: Ævar Arnfjörð Bjarmason <avar@cpan.org>
>
> ---
>  pod/perl5130delta.pod |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/pod/perl5130delta.pod b/pod/perl5130delta.pod
> index 93cd22e..a1a2d0e 100644
> --- a/pod/perl5130delta.pod
> +++ b/pod/perl5130delta.pod
> @@ -39,6 +39,15 @@ still be dispatched within the same statement as  
> they were previously - if
>  this is not the case, or it is possible to create uninterruptable  
> loops, this
>  is a bug, and reports are encouraged of how to recreate such issues.
>
> +=head2 Assignment to C<$0> sets the legacy process name with  
> C<prctl()> on Linux
> +
> +On Linux the legacy process name will be set with L<prctl(2)>, in
> +addition to altering the POSIX name via C<argv[0]> as perl has done
> +since version 4.000. Now system utilities that read the legacy  
> process
> +name such as ps, top and killall will recognize the name you set when
> +assigning to C<$0>. The string you supply will be cut off at 16  
> bytes,
> +this is a limitation imposed by Linux.

This is a run-on sentence.  Correct examples include:

	The string you supply will be cut off at 16 bytes, a limitation  
imposed by Linux.

	The string you supply will be cut off at 16 bytes; this is a  
limitation imposed by Linux.

	The string you supply will be cut off at 16 bytes. This is a  
limitation imposed by Linux.

> +
>  =head1 New Platforms
>
>  XXX List any platforms that this version of perl compiles on, that  
> previous

Cheers,
Josh


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About