From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Marlow Newsgroups: gmane.lisp.guile.user Subject: Threads + pipes = bad? Date: 24 Jul 2003 15:48:16 +0800 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1059032896.10133.41.camel@helicon> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059032886 19298 80.91.224.249 (24 Jul 2003 07:48:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2003 07:48:06 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jul 24 09:48:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19fapY-000515-00 for ; Thu, 24 Jul 2003 09:48:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19faqM-0007hL-K2 for guile-user@m.gmane.org; Thu, 24 Jul 2003 03:48:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19faq3-0007OG-5X for guile-user@gnu.org; Thu, 24 Jul 2003 03:48:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19fapw-0007B5-QO for guile-user@gnu.org; Thu, 24 Jul 2003 03:48:29 -0400 Original-Received: from asclepius.uwa.edu.au ([130.95.128.56]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19fapp-0006bW-Vm for guile-user@gnu.org; Thu, 24 Jul 2003 03:48:22 -0400 Original-Received: from 127.0.0.1 (localhost [127.0.0.1]) by dummy.domain.name (Postfix) with SMTP id 0FC473671CF for ; Thu, 24 Jul 2003 15:48:16 +0800 (WST) Original-Received: from localhost.localdomain (helicon.ucs.uwa.edu.au [130.95.86.66]) by asclepius.uwa.edu.au (Postfix) with ESMTP id 028C73671C6 for ; Thu, 24 Jul 2003 15:48:16 +0800 (WST) Original-To: guile-user@gnu.org X-Mailer: Ximian Evolution 1.0.5 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2099 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2099 Hi all I'm getting some problems with my use of a pipe within a thread in a program I'm writing. Platform is Solaris 8. Anyway, here's an example of a function I've called from within the thread: (define (email message) (let* ((address (assoc-ref message 'address)) (message-text (assoc-ref message 'text)) (mail-pipe (open-output-pipe (string-append "mailx -s \'" subject "\' " address))) (display message-text mail-pipe) (close-pipe))) And here's the errors I get: In thread: ERROR: In procedure dup2: ERROR: Bad file number and In thread: ERROR: In procedure waitpid: ERROR: No child processes Can anyone shed some light on what's happening here? Is there contention for file descriptors or something? TIA -- Regards, Robert Marlow _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user