FreeBSD Bugzilla – Attachment 197768 Details for
Bug 231933
bc hanging and leaving zombie of dc when being called by process with SIGCHLD blocked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixes described issue
bc.patch (text/plain), 396 bytes, created by
Vladimir Vinogradenko
on 2018-10-04 05:45:14 UTC
(
hide
)
Description:
Patch that fixes described issue
Filename:
MIME Type:
Creator:
Vladimir Vinogradenko
Created:
2018-10-04 05:45:14 UTC
Size:
396 bytes
patch
obsolete
>diff --git usr.bin/bc/bc.y usr.bin/bc/bc.y >index 50ac130b4..f8add17f9 100644 >--- usr.bin/bc/bc.y >+++ usr.bin/bc/bc.y >@@ -1184,6 +1184,9 @@ main(int argc, char *argv[]) > if (dc == -1) > err(1, "cannot fork"); > else if (dc != 0) { >+ sigset_t set; >+ sigaddset(&set, SIGCHLD); >+ sigprocmask(SIG_UNBLOCK, &set, NULL); > signal(SIGCHLD, sigchld); > close(STDOUT_FILENO); > dup(p[1]);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231933
: 197768