Browse files

stop being *dumb

  • Loading branch information...
1 parent bd379fb commit 357168b41b48f4534cb6db238b8f3cd33db28396 @pbrisbin committed May 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 android-receiver.c
View
4 android-receiver.c
@@ -120,7 +120,7 @@ void handle_message(struct message_t message)
void sigchld_handler(int signum)
{
(void) signum; /* silence unused warning */
- wait(NULL);
+ waitpid(-1, NULL, 0);
}
int main()
@@ -158,7 +158,7 @@ int main()
fromlen = sizeof(struct sockaddr_in);
/* listen for signals from the children we spawn */
- signal(SIGCHLD, *sigchld_handler);
+ signal(SIGCHLD, sigchld_handler);
while (1)
{

0 comments on commit 357168b

Please sign in to comment.