Skip to content

Commit

Permalink
Remove signal handling from webu_start. Closes #1769
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Dave committed Apr 25, 2024
1 parent 11e5ca7 commit 629b3ba
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/webu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2399,23 +2399,11 @@ void webu_stop(struct context **cnt)

}

/* Start the webcontrol and streams.*/
void webu_start(struct context **cnt)
{
/* This function is called from the main motion thread to start up the
* webcontrol and streams. We need to block some signals otherwise MHD
* will not function correctly.
*/
struct sigaction act;
int indxthrd;

/* set signal handlers TO IGNORE */
memset(&act, 0, sizeof(act));
sigemptyset(&act.sa_mask);
act.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &act, NULL);
sigaction(SIGCHLD, &act, NULL);


indxthrd = 0;
while (cnt[indxthrd] != NULL) {
cnt[indxthrd]->webstream_daemon = NULL;
Expand Down

0 comments on commit 629b3ba

Please sign in to comment.