develooper Front page | perl.perl5.porters | Postings from June 2015

=?UTF-8?B?W3BlcmwgIzEyNTQ2NV0gc2h1dGRvd24oKSBkb2VzbuKAmXQgZXJyb3Igd2hl?= =?UTF-8?B?biBzb2NrZXQgaXMgYWxyZWFkeSBjbG9zZWQ=?=

Thread Previous
felipe @ felipegasper . com
June 23, 2015 15:08
=?UTF-8?B?W3BlcmwgIzEyNTQ2NV0gc2h1dGRvd24oKSBkb2VzbuKAmXQgZXJyb3Igd2hl?= =?UTF-8?B?biBzb2NrZXQgaXMgYWxyZWFkeSBjbG9zZWQ=?=
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #125465]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.40 running under perl 5.20.0.

[Please describe your issue here]

Perl's shutdown() command indicates an error in most OSes, but
I find that, in NetBSD, it doesn't:

#!/usr/bin/env perl

use strict;
use warnings;
use autodie;

use Socket;

socketpair( my $skt1, my $skt2, &Socket::PF_UNIX, &Socket::SOCK_STREAM, &Socket::PF_UNSPEC );

shutdown( $skt1, &Socket::SHUT_WR );
print "ok$/";

shutdown( $skt1, &Socket::SHUT_WR );
print "ok 2$/";

The above script errors at the second shutdown() in most OSes
but finishes without error in NetBSD.

It seems Perl should be consistent .. but I am unsure of whether this is
just a difference between the two platforms.

(Found while testing IO::Die)

[Please do not change anything below this line]
Site configuration information for perl 5.20.0:

Configured by smj at Sun Oct  5 19:43:12 UTC 2014.

Summary of my perl5 (revision 5 version 20 subversion 0) configuration:
    osname=netbsd, osvers=6.1_stable, archname=x86_64-netbsd-thread-multi
    uname='netbsd bjork 6.1_stable netbsd 6.1_stable (generic) #0: fri aug 30 02:42:57 jst 2013 amd64 '
    config_args='-sde -Duseshrplib -Duseithreads -Uusemymalloc'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='gcc', ccflags ='-O2 -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/pkg/include',
    optimize='-O2  -pthread  -I/usr/include',
    cppflags='-O2 -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/pkg/include'
    ccversion='', gccversion='4.5.3', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-Wl,-rpath,/usr/pkg/lib -fstack-protector -L/usr/pkg/lib'
    libpth=/lib /usr/lib /usr/local/lib /usr/pkg/lib
    libs=-lm -lcrypt -lpthread
    perllibs=-lm -lcrypt -lpthread
    libc=/lib/, so=so, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E  -Wl,-R/usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi/CORE'
    cccdlflags='-DPIC -fPIC ', lddlflags='-shared  -L/usr/local/lib -L/usr/pkg/lib -fstack-protector'

@INC for perl 5.20.0:

Environment for perl 5.20.0:
    LANG (unset)
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About