user2655620
user2655620

Reputation: 309

syntax of sigchld and its declaration

On compiling my C program for implementing multiple client server chat program using UDP ,i got some errors..I was able to correct some of them, but cannot do with some others.. They are....:

1) unknown type name sig_atomic_t

2) storage size of sigchild_action isn't known

3) SIGCHLD undeclared (first use in this function)

4) SIGUSR2 undeclared (first use in this function)

I dont know how to solve this errors...I tried a lot, but was not able to find anywhere the syntax of sigchild....n know about how to declare it...Please do help me.....

Upvotes: 1

Views: 5194

Answers (1)

meaning-matters
meaning-matters

Reputation: 22946

What about including the appropriate header:

#include <signal.h>

Does that help?

Upvotes: 11

Related Questions