D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19146 - std.process.spawnProcess: Set signal handlers are reset to SIG_DFL between fork-exec
Summary: std.process.spawnProcess: Set signal handlers are reset to SIG_DFL between fo...
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-06 13:32 UTC by Hiroki Noda
Modified: 2019-07-25 07:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Hiroki Noda 2018-08-06 13:32:45 UTC
It's a possibility that rewriteing global variables may be performed by singal handler,So set signal handlers are reset to SIG_DFL.
In order to prevent race condition, it is necessary to mask signals once in the parent process before fork.
Comment 1 Hiroki Noda 2019-07-25 07:53:50 UTC
I'm wrong, we don't have to care about race condition in this case when we don't use vfork().