summaryrefslogtreecommitdiff
path: root/lib/perl5db.pl
diff options
context:
space:
mode:
authorJason A. Smith <smithj4@rpi.edu>1998-02-06 12:47:08 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-12 16:09:26 +0000
commit8ee058cb0e1f1b40dae70bf2e700d6b09a7122d8 (patch)
treef20079c6db80f338dc8c99be40f569dabba8ed0e /lib/perl5db.pl
parentbf0f82cfd49ab93b8023104206fc86377822b057 (diff)
downloadperl-8ee058cb0e1f1b40dae70bf2e700d6b09a7122d8.tar.gz
Fix saving of STDOUT during system() in lib/perl5db.pl:
Subject: Perl debugger. p4raw-id: //depot/perl@501
Diffstat (limited to 'lib/perl5db.pl')
-rw-r--r--lib/perl5db.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index f0774bcdac..9048ed2baf 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -1386,7 +1386,7 @@ sub system {
# We save, change, then restore STDIN and STDOUT to avoid fork() since
# many non-Unix systems can do system() but have problems with fork().
open(SAVEIN,"<&STDIN") || &warn("Can't save STDIN");
- open(SAVEOUT,">&OUT") || &warn("Can't save STDOUT");
+ open(SAVEOUT,">&STDOUT") || &warn("Can't save STDOUT");
open(STDIN,"<&IN") || &warn("Can't redirect STDIN");
open(STDOUT,">&OUT") || &warn("Can't redirect STDOUT");
system(@_);