Skip navigation.
 
mlRe: [NSPipe pipe] returning nil (running out of filehandles?)
FROM : stephen joseph butler
DATE : Wed Apr 02 01:36:58 2008

On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <m.<email_removed>>
wrote:

> I'm running /sbin/md5 via an NSTask on a number of files (3,000 or
> so, with a new NSTask each time).



This would run a lot faster (and avoid fd issues) if you used libcrypto. Try
"man EVP_DigestInit" to get an idea of where to start.

If the files will always be fairly small, you can load them into an NSData
instance and follow the advice here: <
http://www.cocoadev.com/index.pl?MDFive>

Related mailsAuthorDate
ml[NSPipe pipe] returning nil (running out of filehandles?) Martin Redington Apr 2, 01:19
ml[NSPipe pipe] returning nil (running out of filehandles?) Martin Redington Apr 2, 01:20
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Jim Correia Apr 2, 01:33
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) stephen joseph but… Apr 2, 01:36
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Jean-Daniel Dupas Apr 2, 01:46
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Martin Redington Apr 2, 01:53
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) John Stiles Apr 2, 01:55
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Martin Redington Apr 2, 02:04
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Jerry Krinock Apr 2, 02:10
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Jens Alfke Apr 2, 07:45
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Jean-Daniel Dupas Apr 2, 09:43
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Jean-Daniel Dupas Apr 2, 10:29
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) John Stiles Apr 2, 18:12
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) John Stiles Apr 2, 18:19
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Michael Ash Apr 2, 18:28
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Alastair Houghton Apr 2, 18:50
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) John Stiles Apr 2, 18:52
mlRe: MD5 [was: [NSPipe pipe] returning nil (running out of filehandles?)] Jens Alfke Apr 2, 22:52
mlRe: [NSPipe pipe] returning nil (running out of filehandles?) Martin Redington Apr 3, 19:15