contrib/chg/chg.c
changeset 28084 3fc45956c978
parent 28060 726f8d6cc324
child 28085 c0d1bf1b26b7
equal deleted inserted replaced
28083:550097d01ca3 28084:3fc45956c978
   239 
   239 
   240 	struct sigaction sa;
   240 	struct sigaction sa;
   241 	memset(&sa, 0, sizeof(sa));
   241 	memset(&sa, 0, sizeof(sa));
   242 	sa.sa_handler = forwardsignal;
   242 	sa.sa_handler = forwardsignal;
   243 	sa.sa_flags = SA_RESTART;
   243 	sa.sa_flags = SA_RESTART;
       
   244 	sigemptyset(&sa.sa_mask);
   244 
   245 
   245 	sigaction(SIGHUP, &sa, NULL);
   246 	sigaction(SIGHUP, &sa, NULL);
   246 	sigaction(SIGINT, &sa, NULL);
   247 	sigaction(SIGINT, &sa, NULL);
   247 
   248 
   248 	/* terminate frontend by double SIGTERM in case of server freeze */
   249 	/* terminate frontend by double SIGTERM in case of server freeze */