[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: build: syscalls: Add a SET-CHILD-SUBREAPER! procedure.
From: |
guix-commits |
Subject: |
01/09: build: syscalls: Add a SET-CHILD-SUBREAPER! procedure. |
Date: |
Sat, 20 Nov 2021 09:00:41 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit 8444b44a8c7ae67c11dee22f99b0a7b6a431d29d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Nov 18 22:17:26 2021 -0500
build: syscalls: Add a SET-CHILD-SUBREAPER! procedure.
* guix/build/syscalls.scm (PR_SET_CHILD_SUBREAPER): New variable.
(set-child-subreaper!): New procedure.
---
guix/build/syscalls.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index b305133..15b2ea6 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -120,6 +120,8 @@
with-file-lock
with-file-lock/no-wait
+ set-child-subreaper!
+
set-thread-name
thread-name
@@ -1421,6 +1423,11 @@ handler if the lock is already held by another process."
(define PR_SET_NAME 15) ;<linux/prctl.h>
(define PR_GET_NAME 16)
+(define PR_SET_CHILD_SUBREAPER 36)
+
+(define (set-child-subreaper!)
+ "Set the CHILD_SUBREAPER capability for the current process."
+ (%prctl PR_SET_CHILD_SUBREAPER 1 0 0 0))
(define %max-thread-name-length
;; Maximum length in bytes of the process name, including the terminating
- branch core-updates-frozen updated (83580b9 -> 76df1ad), guix-commits, 2021/11/20
- 02/09: gnu: libxcursor: Add a search path for XCURSOR_PATH., guix-commits, 2021/11/20
- 01/09: build: syscalls: Add a SET-CHILD-SUBREAPER! procedure.,
guix-commits <=
- 04/09: gnu: gjs: Update to 1.70.0., guix-commits, 2021/11/20
- 07/09: gnu: wayland: Use native-inputs unconditionally, guix-commits, 2021/11/20
- 09/09: gnu: gtk: Guard against timeouts in the test suite., guix-commits, 2021/11/20
- 06/09: gnu: gnome-shell: Update to 41.0., guix-commits, 2021/11/20
- 03/09: gnu: mutter: Update to 41.0 and enable tests., guix-commits, 2021/11/20
- 08/09: gnu: libnice: Disable the 'test-bsd' test., guix-commits, 2021/11/20
- 05/09: gnu: gsettings-desktop-schemas: Update to 41.0., guix-commits, 2021/11/20