Example #1
0
void	slct_key_escape(t_select *slct, int *pfd)
{
	(void)slct;
	dup2(pfd[1], 1);
	write(1, "", 1);
	proper_exit(EXIT_SUCCESS);
}
Example #2
0
/*
 * Handler for TERM signal.
 */
void sig_handler (int sig)
{
  proper_exit ();
  _exit (1);
}