commit 3e346a2a84b099766ea8a3a4a4549f6172483062 Author: Ludovic Courtès Date: Sun Dec 3 22:30:03 2017 +0100 service: In 'exec-command', close open ports before 'execl'. This gets rid of annoying "Bad file descriptor" warnings from shepherd. * modules/shepherd/service.scm (exec-command): In 'loop', invoke 'close-port' and the ports returned by (fdes->ports i). diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm index b2d8bc5..0ad28a0 100644 --- a/modules/shepherd/service.scm +++ b/modules/shepherd/service.scm @@ -1,5 +1,5 @@ ;; service.scm -- Representation of services. -;; Copyright (C) 2013, 2014, 2015, 2016 Ludovic Courtès +;; Copyright (C) 2013, 2014, 2015, 2016, 2017 Ludovic Courtès ;; Copyright (C) 2002, 2003 Wolfgang Järling ;; Copyright (C) 2014 Alex Sassmannshausen ;; Copyright (C) 2016 Alex Kost @@ -744,6 +744,14 @@ false." (let loop ((i 3)) (when (< i max-fd) + ;; First try to close any ports associated with file descriptor I. + ;; Otherwise the finalization thread might get around to closing + ;; those ports eventually, which will raise an EBADF exception (on + ;; 2.2), leading to messages like "error in the finalization + ;; thread: Bad file descriptor". + (for-each (lambda (port) + (catch-system-error (close-port port))) + (fdes->ports i)) (catch-system-error (close-fdes i)) (loop (+ i 1))))) ff2f03948b2d17ce454cc7c7787b3c79'/>
AgeCommit message (Expand)Author
2019-12-24gnu: php: Update to 7.4.1....This fixes CVE-2019-1104[45679], CVE-2019-11050. * gnu/packages/php.scm (php): Update to 7.4.1. Efraim Flashner
2019-11-29gnu: php: Update to 7.4.0....* gnu/packages/php.scm (php): Update to 7.4.0. Julien Lepiller
2019-11-22gnu: php: Update to 7.3.12....* gnu/packages/php.scm (php): Update to 7.3.12. Julien Lepiller
2019-11-16php: Enable more extentions....* gnu/packages/php.scm (php)[arguments]: Use libzip instead of zip for the "--with-libzip" argument, enable intl and zip. [inputs]: Add icu4c, libzip. Remove zip. Björn Höfling
2019-10-24gnu: php: Update to 7.3.11....* gnu/packages/php.scm (php): Update to 7.3.11. Julien Lepiller
2019-09-05gnu: php: Build against Oniguruma 6....* gnu/packages/php.scm (php)[inputs]: Change ONIGURUMA-5 to ONIGURUMA. * gnu/packages/textutils.scm (oniguruma-5): Remove variable. Marius Bakke
2019-08-04gnu: Remove pcre2/fixed....* gnu/packages/pcre.scm (pcre2/fixed): Remove variable. (pcre2)[replacement]: Remove. [source](patches): New field. * gnu/packages/php.scm (php)[inputs]: Change PCRE2/FIXED to PCRE2. Marius Bakke
2019-08-02gnu: php: Update to 7.3.8....* gnu/packages/php.scm (php): Update to 7.3.8. [inputs]: Use pcre2/fixed. Tobias Geerinckx-Rice
2019-08-02gnu: php: Don't use NAME in source URI....* gnu/packages/php.scm (php)[source]: Hard-code NAME. Tobias Geerinckx-Rice