guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging guile runtime


From: Thien-Thi Nguyen
Subject: Re: debugging guile runtime
Date: Mon, 29 Aug 2011 21:20:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

() address@hidden
() Mon, 29 Aug 2011 18:24:00 +0200

   Sorry I did not report the problem very well.  The trouble is not with
   fork itself but with open-process, which is not actually part of the
   runtime but rather part of ice-9 popen module.

Perhaps an object property could be added:

;; The property that @code{execl} uses to decide how to handle
;; an open port.  If the value is @code{#t}, do @code{close-port}
;; on it.  If a procedure, call that procedure with the port.
;; If @code{#f} or never specified, do nothing.
;;
(define close-on-exec (make-object-property))

Example usage:

(define port (open-input-file "COPYING"))
(set! (close-on-exec port) #t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]