Changeset 9369 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 03/01/09 21:54:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r9302 r9369 1504 1504 if (!p) 1505 1505 { 1506 *fLog << err << "ERROR - Couldn't open pipe " << pipe << endl;1506 *fLog << err << "ERROR - Couldn't open pipe " << pipe << ": " << strerror(errno) << endl; 1507 1507 return kFALSE; 1508 1508 } … … 1514 1514 ULong_t i = 0; 1515 1515 TGLongPosition pos; 1516 1517 Bool_t rc = kTRUE; 1516 1518 1517 1519 pos.fX = pos.fY = 0; … … 1533 1535 i++; 1534 1536 } 1535 fwrite(buf2, sizeof(char), strlen(buf2)+1, p); 1536 1537 1538 const UInt_t len = sizeof(char)*(strlen(buf2)+1); 1539 1540 const size_t ret = fwrite(buf2, len, 1, p); 1537 1541 delete [] buf1; 1538 1542 delete [] buf2; 1543 1544 if (ret!=1) 1545 { 1546 *fLog << err << "ERROR - fwrite to pipe " << pipe << " failed: " << strerror(errno) << endl; 1547 rc = kFALSE; 1548 break; 1549 } 1550 1539 1551 pos.fY++; 1540 1552 } … … 2487 2499 { 2488 2500 if (gROOT->IsBatch()) 2489 return num>0 && num<=fBatch->GetSize() || num<0;2501 return (num>0 && num<=fBatch->GetSize()) || num<0; 2490 2502 2491 2503 if (num>=fTab->GetNumberOfTabs())
Note:
See TracChangeset
for help on using the changeset viewer.