From ff535f4d571654d23e99d97fbcf00a2b7fb37196 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 3 Oct 2000 14:58:39 +0000 Subject: [PATCH] Scale down the VMS message boxes, by Charles Lane. Fix for ID 20000903.009, workaround at http://www.xray.mpe.mpg.de/mailing-lists/vmsperl/2000-09/msg00039.html p4raw-id: //depot/perl@7133 --- vms/vms.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/vms/vms.c b/vms/vms.c index d7a2dcd..bd4203e 100644 --- a/vms/vms.c +++ b/vms/vms.c @@ -971,6 +971,9 @@ my_tmpfile(void) } /*}}}*/ +/* default piping mailbox size */ +#define PERL_BUFSIZ 256 + static void create_mbx(unsigned short int *chan, struct dsc$descriptor_s *namdsc) @@ -984,12 +987,10 @@ create_mbx(unsigned short int *chan, struct dsc$descriptor_s *namdsc) if (!syssize) { unsigned long syiitm = SYI$_MAXBUF; /* - * Get the SYSGEN parameter MAXBUF, and the smaller of it and the - * preprocessor consant BUFSIZ from stdio.h defaults as the size of the - * 'pipe' mailbox. + * Get the SYSGEN parameter MAXBUF * * If the logical 'PERL_MBX_SIZE' is defined - * use the value of the logical instead of BUFSIZ, but again + * use the value of the logical instead of PERL_BUFSIZ, but * keep the size between 128 and MAXBUF. * */ @@ -999,7 +1000,7 @@ create_mbx(unsigned short int *chan, struct dsc$descriptor_s *namdsc) if (vmstrnenv("PERL_MBX_SIZE", csize, 0, fildev, 0)) { mbxbufsiz = atoi(csize); } else { - mbxbufsiz = BUFSIZ; + mbxbufsiz = PERL_BUFSIZ; } if (mbxbufsiz < 128) mbxbufsiz = 128; if (mbxbufsiz > syssize) mbxbufsiz = syssize; -- 2.7.4