[32439] in Perl-Users-Digest
Perl-Users Digest, Issue: 3706 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 4 09:09:24 2012
Date: Mon, 4 Jun 2012 06:09:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 4 Jun 2012 Volume: 11 Number: 3706
Today's topics:
Activestate Perl 5.16 <dilbert1999@gmail.com>
Re: Child processes don't get the close on pipe <lothar.braun@googlemail.com>
Re: Child processes don't get the close on pipe <rweikusat@mssgmbh.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 3 Jun 2012 12:45:34 -0700 (PDT)
From: Dilbert <dilbert1999@gmail.com>
Subject: Activestate Perl 5.16
Message-Id: <6246bb1b-ff3f-4f0b-b290-9595f34174dd@j9g2000vbk.googlegroups.com>
Hello everybody,
Does anybody know whether Activestate are going to release Activestate
Perl 5.16 ?
------------------------------
Date: Sun, 3 Jun 2012 05:12:43 -0700 (PDT)
From: Lothar Braun <lothar.braun@googlemail.com>
Subject: Re: Child processes don't get the close on pipe
Message-Id: <e19797c4-40e8-4f0c-9b14-2694e1f8ee34@z19g2000vbe.googlegroups.com>
Hi,
On Jun 2, 4:55=A0pm, Rainer Weikusat <rweiku...@mssgmbh.com> wrote:
> You'll get an EOF on a pipe as soon as one side of it has been
> closed. Since the child inherits the 'writer' handle but doesn't close
> it, this will never happen.
Ok, I can now see the problem.
> You could use two pipes instead but it is
> probably easier to use an AF_UNIX SOCK_STREAM socketpair (=3D> perldoc
> -f socketpair), closing one of the handles in the parent process and
> the other in the child.
Thank you. I was able to fix my problem with this one :)
- Lothar
------------------------------
Date: Sun, 03 Jun 2012 18:31:26 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: Child processes don't get the close on pipe
Message-Id: <87ehpwqp3l.fsf@sapphire.mobileactivedefense.com>
Lothar Braun <lothar.braun@googlemail.com> writes:
> On Jun 2, 4:55 pm, Rainer Weikusat <rweiku...@mssgmbh.com> wrote:
[...]
>> You could use two pipes instead but it is
>> probably easier to use an AF_UNIX SOCK_STREAM socketpair (=> perldoc
>> -f socketpair), closing one of the handles in the parent process and
>> the other in the child.
>
> Thank you. I was able to fix my problem with this one :)
Possibly useful remark: Sockets also support asymmetric communication
shutdown. The parent can use a suitable shutdown call to announce that
it is done with writing data. The child will then see an EOF but can
still use its file descriptor to send data to the parent.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3706
***************************************