summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>1999-08-11 09:31:11 -0500
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-11 22:11:35 +0000
commita5da935345a673c66c903bfd517404de47f816e1 (patch)
tree62c5038a17872bd2735b627cd3cfcc173c08377c /vms
parent05f8a9f5a7f6c49d97cfda88caa301ccc0bdddb1 (diff)
downloadperl-a5da935345a673c66c903bfd517404de47f816e1.tar.gz
Bypass fsync(NULL) (crashes miniperl compiled with DEC C 5.2)
Sender: owner-perl5-porters@perl.org To: vmsperl@perl.org, perl5-porters@perl.org, sarathy@activestate.com, bailey@newman.upenn.edu Subject: [PATCH 5.005_60] vms.c my_flush patch to circumvent fileno problem Message-Id: <4.2.0.58.19990811141007.00b8f8a0@mmtnt11.metamor.com> p4raw-id: //depot/cfgperl@3959
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 0845ff9968..bf2726f9a0 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -3576,7 +3576,7 @@ int
my_flush(FILE *fp)
{
int res;
- if ((res = fflush(fp)) == 0) {
+ if ((res = fflush(fp)) == 0 && fp) {
#ifdef VMS_DO_SOCKETS
Stat_t s;
if (Fstat(fileno(fp), &s) == 0 && !S_ISSOCK(s.st_mode))