Article View: news.software.readers
Article #4407tin slow checksum on SunOS
From: 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.
Technical Details
Message-ID:
<1v3lc4INNbql@ariel.ucs.unimelb.EDU.AU>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!caen!batcomputer!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!rabbit.physiol.unimelb.edu.au!dfaShow Full Headers
Complete Article Headers
Message-ID: <1v3lc4INNbql@ariel.ucs.unimelb.EDU.AU> Subject: tin slow checksum on SunOS Date: Wed, 09 Jun 1993 03:28:04 +0000 From: dfa@rabbit.physiol.unimelb.edu.au (David Abbott) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!caen!batcomputer!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!rabbit.physiol.unimelb.edu.au!dfa Newsgroups: news.software.readers Followup-To: news.software.readers Organization: Physiology Department, The University of Melbourne Lines: 40 Distribution: world NNTP-Posting-Host: rabbit.physiol.unimelb.edu.au Keywords: tin sunos slow checksum uudecode