Thread View: news.software.readers
1 messages
1 total messages
Started by David Abbott
Wed, 09 Jun 1993 03:28
tin slow checksum on SunOS
Author: David Abbott
Date: Wed, 09 Jun 1993 03:28
Date: Wed, 09 Jun 1993 03:28
40 lines
2700 bytes
2700 bytes
I'm using tin 1.20 on a Sun running SunOS 4.1.2. When decoding binaries there is a long pause after the uudecode has finished but before the file checksum is displayed. I have tracked this problem down to the get_archive_file function in save.c. This function returns the filename of the file last modified in the directory the uudecode was performed (so that tin can then go on and do a checksum and further post processing if required). The way get_archive_file currently works is to do a popen on an 'ls -t' function and read the first line. A huge delay occurs in two places. Once at the fgets that reads the first line, and once at the pclose at the end of the function. These delays seem to be the result of an operating system bug rather than a bug in tin itself. I tried re-writing get_archive_file to instead do a system call to write the ls -t to a temporary file, and then read that. That worked, but there was a big delay when calling system(). I also did a system() to delete the temporary file, but there was no delay there. Something funny is definitely going on when trying to do an ls -t from within tin. I can have another window open and do many ls -t's (which happen quickly) while tin is choking on its one! Has anyone else experienced this problem? Has anyone been able to fix it? If there is no fix, perhaps Ian could put an option in the next version of tin to avoid any post processing or checksum so that those who use Suns and who don't use those features can get faster decoding. I've disabled that part by modifying the source and now I can decode really fast! -David. - - - David Abbott | Email: dfa@physiol.unimelb.edu.au School of Physics & Dept. of Physiology | Phone: +61-3-344-5465 The University of Melbourne, Australia. | Fax: Available on request.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads