r1214 - trunk/src/host/devirginator
werner at sita.openmoko.org
werner at sita.openmoko.org
Fri Mar 2 00:33:44 CET 2007
Author: werner
Date: 2007-03-02 00:33:39 +0100 (Fri, 02 Mar 2007)
New Revision: 1214
Modified:
trunk/src/host/devirginator/openocdcmd.pl
Log:
Improved child process error detection.
Modified: trunk/src/host/devirginator/openocdcmd.pl
===================================================================
--- trunk/src/host/devirginator/openocdcmd.pl 2007-03-01 21:19:04 UTC (rev 1213)
+++ trunk/src/host/devirginator/openocdcmd.pl 2007-03-01 23:33:39 UTC (rev 1214)
@@ -43,7 +43,7 @@
select $old;
while (defined $ARGV[0]) {
- print PIPE "$ARGV[0]\n";
+ print PIPE "$ARGV[0]\n" || die "telnet: $!";
shift @ARGV;
}
@@ -56,4 +56,4 @@
exit(1);
}
-close PIPE;
+close PIPE || die "telnet: $!";
More information about the commitlog
mailing list