guix/guix
Ludovic Courtès c20d4cac1f
processes: Gracefully handle daemons without clients.
Fixes <https://bugs.gnu.org/34716>.
Reported by Mark H Weaver <mhw@netris.org>.

The problem could be reproduced by running, on one hand:

  sh -c 'exec -a guix-daemon sleep 777'

and on the other hand:

  guix processes

If there is no process with PID 777, 'guix processes' would barf as it
stumbles upon a <daemon-session> record whose client is #f.

* guix/scripts/processes.scm (daemon-sessions)[child-process->session]:
New procedure, with lambda formerly passed to 'map'.  Handle #f returns
from 'lookup-process'.
Call 'child-process->session' within 'filter-map', not just 'map'.
2019-04-29 21:54:10 +02:00
..
build file-systems: Support the 'no-atime' flag. 2019-04-29 12:19:03 +02:00
build-system gnu: ocaml@4.02: Remove the package, affected by a CVE, and its dependent 2019-04-25 19:01:31 +02:00
import
scripts processes: Gracefully handle daemons without clients. 2019-04-29 21:54:10 +02:00
store gnu, guix: Yearly ritual purging of the filesystems. 2019-04-25 04:42:16 +02:00
tests
base16.scm
base32.scm
base64.scm
build-system.scm
cache.scm
channels.scm pull: '--url', '--commit', and '--branch' apply to the 'guix' channel. 2019-04-17 13:56:40 +02:00
ci.scm
colors.scm colors: Add 'highlight'. 2019-04-14 23:40:52 +02:00
combinators.scm
config.scm.in build: No longer substitute 'LIBGCRYPT'. 2019-04-17 11:53:53 +02:00
cpio.scm
cve.scm
cvs-download.scm
deprecation.scm
derivations.scm derivations: Reduce 'valid-path?' RPCs in 'derivation-prerequisites-to-build'. 2019-04-16 17:30:21 +02:00
describe.scm
discovery.scm
docker.scm
download.scm store: Memoize 'built-in-builders' call directly in <store-connection>. 2019-04-16 17:30:21 +02:00
elf.scm
ftp-client.scm
gexp.scm
git-download.scm
git.scm
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm
graph.scm
hg-download.scm
http-client.scm
i18n.scm
inferior.scm
licenses.scm
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm
pki.scm
profiles.scm
profiling.scm
progress.scm
records.scm
scripts.scm
search-paths.scm
self.scm self: Rebuild translated manuals. 2019-04-27 17:13:18 +02:00
serialization.scm
sets.scm
ssh.scm
status.scm colors: Introduce a disjoint type and pre-compute ANSI escapes. 2019-04-11 18:18:13 +02:00
store.scm store: Add "add-data-to-store-cache" profiling component. 2019-04-16 17:30:21 +02:00
svn-download.scm
swh.scm
tests.scm
ui.scm ui: Highlight heading of generation lists. 2019-04-14 23:40:52 +02:00
upstream.scm
utils.scm
workers.scm
zlib.scm