Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 00ecd55

Browse files
Merge pull request #2981 from John-Colvin/patch-9
add exit_group to core.sys.linux.unistd
2 parents d11d392 + ce6fb69 commit 00ecd55

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog/add_exit_group.dd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add `exit_group` to `core.sys.linux.unistd`
2+
3+
add `exit_group` to `core.sys.linux.unistd`, exits all threads in a process, present since linux 2.5.35

src/core/sys/linux/unistd.d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ enum {
1919

2020
/// Prompt for a password without echoing it.
2121
char* getpass(const(char)* prompt);
22+
23+
// Exit all threads in a process
24+
void exit_group(int status);

0 commit comments

Comments
 (0)