Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#119 parallel view using clearcase snapshot on linux broken

open
nobody
None
5
2010-11-18
2010-11-18
Lee Ballard
No

using clearcase snapshot view on RHEL4.8 I see the following error when I click on parallel links:

Can't close(): Bad file descriptor at /var/www/codestriker/codestriker-1.9.10/lib/Codestriker/Action/ViewTopicFile.pm line 66

Here is the source of the problem. After making this change it works fine

--------------- lib/Codestriker/Repository/ClearCaseSnapshot.pm ---------------
index 42e530d..3c74341 100644
@@ -59,13 +59,14 @@ sub retrieve ($$$\$) {
push @ctArgs, $full_element_name;
Codestriker::execute_command(\*STDERR, \*STDERR, $Codestriker::cleartool, @ctArgs);

+ my $input_fh = new FileHandle;
open(my $input_fh, "<", $tempfile);
for (my $i = 1; <$input_fh>; $i++) {
$_ = Codestriker::decode_topic_text($_);
chop;
$$content_array_ref[$i] = $_;
}
- close <$input_fh>;
+ close $input_fh;

if (defined($tempdir)) {
unlink $errorfile;

Discussion

  • Lee Ballard
    Lee Ballard
    2010-11-18

    • summary: parallel view clearcase snapshot view on linux broken --> parallel view using clearcase snapshot on linux broken