From 3baa9d168c02a8734b95d1cc467601b6aaf2f6e4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 26 Nov 2001 23:11:40 +0000 Subject: Big job here. Many bugs out. Hurray!! --- lib/CopyJob.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/CopyJob.cc') diff --git a/lib/CopyJob.cc b/lib/CopyJob.cc index 7b4694a..a736e9d 100644 --- a/lib/CopyJob.cc +++ b/lib/CopyJob.cc @@ -4,7 +4,6 @@ CopyJob::CopyJob(Handle * as, Handle * ad, ssize_t asiz, bool ads) : s(as), d(ad), ds(ads), siz(asiz), cursiz(0), r(0) { WaitFor(s, W4_STICKY | W4_READING); WaitFor(d, W4_STICKY | W4_WRITING); - cerr << "Creating a copyjob from " << s->GetName() << " to " << d->GetName() << " of " << siz << " bytes.\n"; } CopyJob::~CopyJob() { } @@ -12,18 +11,13 @@ CopyJob::~CopyJob() { } int CopyJob::Do() throw (GeneralException) { int tr; - cerr << GetName() << " running...\n"; - switch (current) { case 0: tr = siz >= 0 ? siz - cursiz : COPY_BUFSIZ; - cerr << "Reading " << tr << " bytes.\n"; try { r = s->read(buffer, MIN(COPY_BUFSIZ, tr)); - cerr << "Got " << r << " bytes.\n"; } catch (IOAgain e) { - cerr << "Not enough bytes. Suspending.\n"; Suspend(); } case 1: @@ -31,12 +25,10 @@ int CopyJob::Do() throw (GeneralException) { return TASK_DONE; } try { - cerr << "Writing " << r << " bytes.\n"; d->write(buffer, r); } catch (IOAgain e) { current = 1; - cerr << "No more byte in the output. Suspending.\n"; Suspend(); } current = 0; -- cgit v1.2.3