Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undeclared identifier 'SIGCLD' on OSX El Captain #1

Open
Grabber opened this issue Oct 24, 2015 · 2 comments
Open

undeclared identifier 'SIGCLD' on OSX El Captain #1

Grabber opened this issue Oct 24, 2015 · 2 comments

Comments

@Grabber
Copy link

Grabber commented Oct 24, 2015

issue

prism.c:178:12: error: use of undeclared identifier 'SIGCLD'
signal(SIGCLD, SIG_IGN); //Prevent child process from becoming zombie process

patch

#ifndef SIGCLD
#   define SIGCLD SIGCHLD
#endif

gcc -Wall -o prism prism.c

@qqqqpppp
Copy link

same with me... did you sovled it?

@Grabber
Copy link
Author

Grabber commented Jul 13, 2017

@qqqqpppp, add the patch.

#ifndef SIGCLD
#   define SIGCLD SIGCHLD
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants