[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dev-serveez] gh_leave ?
From: |
Martin Grabmueller |
Subject: |
Re: [dev-serveez] gh_leave ? |
Date: |
Wed, 14 Mar 2001 10:55:56 +0100 |
> From: stefan <address@hidden>
> Date: Tue, 13 Mar 2001 23:24:44 +0100 (CET)
>
> On Tue, 13 Mar 2001, Martin Grabmueller wrote:
>
> > Guile has a procedure port-for-each, which allows to apply a procedure
> > to every open port. Oh, sorry for the Scheme speak -- a port is the
> > file abstraction for Scheme. So it is possible to explicitly close
> > all files (except for std{in,out,err}).
> >
> > Example:
> >
> > (port-for-each close-port)
> >
> > This could be evaluated directly after the fork().
>
> Does it hurt a lingering Guile to call this right after something like
> gh_eval_file("the_config") ? Thus we do not need it *after* the fork()
> which might hinder us to separate the guile code from the serveez core
> library.
I don't think that's a problem. Guile does nothing except when it is
called to do so (except for occupying memory, of course...)
Regards,
'martin