/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/20 15:12:04 by ljiriste #+# #+# */
-/* Updated: 2024/01/23 13:26:46 by ljiriste ### ########.fr */
+/* Updated: 2024/02/21 09:35:18 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
static t_transfer g_trans;
-static void bit_reciever(int signum)
+static void bit_receiver(int signum)
{
if (signum == SIGUSR1)
g_trans.bit = 1;
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGUSR1);
sigaddset(&sa.sa_mask, SIGUSR2);
- sa.sa_handler = bit_reciever;
+ sa.sa_handler = bit_receiver;
sigaction(SIGUSR1, &sa, NULL);
sigaction(SIGUSR2, &sa, NULL);
return ;
"You can contact me through my PID: %i.\n"
"For legibility I'll leave one empty line "
"after this initial message.\n"
- "I'll also append empty line to every message recieved.\n"
+ "I'll also append empty line to every message received.\n"
"I'm starting to print the messages now:\n\n", getpid());
*c_pid = 0;
*c_pid_known = 0;