[racket] Detecting named pipe

From: Paulo J. Matos (paulo at matos-sorge.com)
Date: Sun Sep 2 09:25:37 EDT 2012

Hi,

I am trying to obtain the md5sum of a bunch of files, so for all files 
with path 'p' I do : (call-with-input-file p md5)

The problem is that this hangs when I find a named pipe file. 
file-exists? returns #t and then the process hangs. It seems I can't run 
md5 on named pipes, so how can I check if a file is a named pipe?

Cheers,
-- 
PMatos


Posted on the users mailing list.