View | Details | Raw Unified | Return to bug 231933
Collapse All | Expand All

(-)usr.bin/bc/bc.y (+3 lines)
Lines 1184-1189 main(int argc, char *argv[]) Link Here
1184
		if (dc == -1)
1184
		if (dc == -1)
1185
			err(1, "cannot fork");
1185
			err(1, "cannot fork");
1186
		else if (dc != 0) {
1186
		else if (dc != 0) {
1187
			sigset_t set;
1188
			sigaddset(&set, SIGCHLD);
1189
			sigprocmask(SIG_UNBLOCK, &set, NULL);
1187
			signal(SIGCHLD, sigchld);
1190
			signal(SIGCHLD, sigchld);
1188
			close(STDOUT_FILENO);
1191
			close(STDOUT_FILENO);
1189
			dup(p[1]);
1192
			dup(p[1]);

Return to bug 231933