[Top][All Lists]

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

[Guile-commits] GNU Guile branch, wip-threads-and-fork, created. v2.1.0-

From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, wip-threads-and-fork, created. v2.1.0-12-gc9a0e1b
Date: Thu, 09 Feb 2012 19:35:01 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

The branch, wip-threads-and-fork has been created
        at  c9a0e1bcac797d399072002124af295a4c6a0cb7 (commit)

- Log -----------------------------------------------------------------
commit c9a0e1bcac797d399072002124af295a4c6a0cb7
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:11:57 2012 +0100

    web server: use CLOEXEC
    * module/web/server/http.scm (http-read): Pass SOCK_CLOEXEC to

commit fdccc2f61ebbc0a19d2e8e2b0c75ac68135eb951
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:11:28 2012 +0100

    optional flags arg to scm_accept, which uses accept4
    * libguile/socket.c (scm_accept): Take another argument, "flags".  This
      dispatches to accept4, if it's available, to possibly set the CLOEXEC
      flag on the accepted port.

commit 7af394c2ad257df8f6e358f461c6310705b7fc45
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:10:26 2012 +0100

    fix a race (one of many) relating to close-port
    * libguile/ports.c (scm_i_remove_port): Remove the port from the weak
      set before nulling out the stream.  Fixes a case in which
      port-for-each traversers can see a NULL stream.

commit 6b7e0e67d514fce10c0c2aa0d8709555b214650e
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:09:36 2012 +0100

    primitive-move->fdes preserves CLOEXEC flag
    * libguile/ioext.c (scm_primitive_move_to_fdes): Use dup3 to preserve
      the CLOEXEC flag, if appropriate.

commit 9c6ed57ed72a60dccd0bc53e1e204ce30eb9e238
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:08:15 2012 +0100

    add file-port-close-on-exec?; popen takes advantage of it.
    * libguile/fports.c (scm_i_evict_port): Use F_DUPFD_CLOEXEC if the port
      is CLOEXEC.
      (scm_file_port_close_on_exec_p): New interface.
      (scm_i_fdes_to_port): Use F_GETFD on the fd to see if it is cloexec,
      and if it is, mark it in the scm_t_fport.  That way popen.scm won't
      have to do anything about it.
    * module/ice-9/popen.scm (ensure-fdes): No need for false-if-exception
      (open-process): Rework the port-for-each call to not bother with file
      descriptors that are CLOEXEC.

commit 990af84705e15a6f8c58cde45ae07c4b0b499140
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:05:04 2012 +0100

    fcntl: support F_DUPFD_CLOEXEC and O_CLOEXEC.
    * libguile/filesys.c (scm_fcntl): Document F_DUPFD_CLOEXEC.
      (scm_init_filesys): Define O_CLOEXEC and F_DUPFD_CLOEXEC.

commit 6a37ca6141f6ed3aeacd7827bd90d77e49ffee09
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 20:02:52 2012 +0100

    wrap iconv_open / iconv_close with a lock to help in thread/fork issues
    * libguile/bytevectors.c (STRING_TO_UTF, scm_string_to_utf8)
    * libguile/ports.c (finalize_port, scm_i_remove_port):
      (scm_i_set_port_encoding_x, scm_ungetc_unlocked):
    * libguile/strings.c (scm_from_stringn, scm_to_stringn): Wrap operations
      that acquire and destroy iconv contexts with a mutex.  While iconv is
      threadsafe, internally it uses a lock, and we need to make sure when
      we fork() that no one has that lock -- so we surround it with another
      one.  Gross.

commit cdb02508ac9b7eb02174c531d7dd3f35bc7ea4ed
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 19:57:41 2012 +0100

    use scm_c_atfork_lock_static_mutex for guile's static mutexen
    * libguile/async.c (scm_init_async):
    * libguile/deprecation.c (scm_init_deprecation):
    * libguile/fluids.c (scm_init_fluids):
    * libguile/gc.c (scm_init_gc):
    * libguile/instructions.c (scm_bootstrap_instructions):
    * libguile/ports.c (scm_init_ports):
    * libguile/posix.c (scm_init_posix):
    * libguile/strings.c (string_get_handle):
    * libguile/threads.c (scm_init_threads): Use the atfork mutex mechanism
      to lock a number of static mutexen.

commit 1f6e45c9f8004b7812e236154c6fa07c1b9c82f8
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 19:52:42 2012 +0100

    add scm_c_atfork_lock_static_mutex
    * libguile/posix.h:
    * libguile/posix.c (scm_c_atfork_lock_static_mutex): New interface.

commit ea5b3a0c615b3121b8288e1575c7ef17b230f423
Author: Andy Wingo <address@hidden>
Date:   Wed Feb 8 15:47:22 2012 +0100

    add atfork interface
    * libguile/posix.h:
    * libguile/posix.c (scm_c_atfork): New interface.
      (scm_fork): Wrap fork calls in atfork pre/post invocations, and
      finally a GC_call_with_alloc_lock.  It's an attempt to grab the
      interesting mutexes in Guile.
    * libguile/weak-set.c (make_weak_set):
    * libguile/weak-table.c (make_weak_table): Use atfork mechanism to lock
      and unlock weak sets and weak tables during a fork(), in such a way
      that does not prevent those tables from being gc'd.


GNU Guile

reply via email to

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