[Issue 21575] Child processes spawned by std.process.spawnProcess accidentally inherit signal masks in parent process

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 24 05:42:42 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21575

Tomoya Tanjo <ttanjo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |major

--- Comment #1 from Tomoya Tanjo <ttanjo at gmail.com> ---
Sorry, I misunderstood the problem.

As shown in the following link, `execve` that is internally called by
spawnProcess does not inherit signal handlers but inherits signal masks of the
parent process.
Inheriting the signal masks is the source of this issue.

https://man7.org/linux/man-pages/man7/signal.7.html

I fixed the title of this issue.

--


More information about the Digitalmars-d-bugs mailing list