[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debootstrap --second-stage fails in armhf due to fail setting up cron. BUG?

Le Thursday 19 January 2012 01:42:58, Iker Salmón San Millán a écrit :
> related /usr/sbin/addgroup lines:
> 85    my $nogroup_id = getgrnam("nogroup") || 65534;
> 86    $0 =~ s+.*/++;
> 87
> 88    our $verbose = 1;        # should we be verbose?

Well, according to perlvar(1) (look for \$0), modifying $0 is not portable. 
(In this case, I don't see the point: addgroup program is short lived, hence 
shortening the process name is not likely to be useful.)

Since perl5.14, prctl is used to modify the process name through $0. prctl may 
have issues on older kernel.

This may be a perl 5.14 bug. OTOH, changing $0 in addgroup is a bad idea.


http://config-model.wiki.sourceforge.net/ -o- http://search.cpan.org/~ddumont/
http://www.ohloh.net/accounts/ddumont     -o- http://ddumont.wordpress.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: