projects
/
42
/
minitalk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c400584
)
Fix a typo
trunk
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Wed, 21 Feb 2024 08:39:50 +0000
(09:39 +0100)
committer
Lukas Jiriste
<ljiriste@student.42prague.com>
Wed, 21 Feb 2024 08:39:50 +0000
(09:39 +0100)
src/server.c
patch
|
blob
|
history
diff --git
a/src/server.c
b/src/server.c
index 898d46a9d5de7980e9d101ce4699441151a7346f..cfa5f80ec74f6537bfd662bace77ea8c0b5774a9 100644
(file)
--- a/
src/server.c
+++ b/
src/server.c
@@
-6,7
+6,7
@@
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/20 15:12:04 by ljiriste #+# #+# */
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/20 15:12:04 by ljiriste #+# #+# */
-/* Updated: 2024/0
1/23 13:26:46
by ljiriste ### ########.fr */
+/* Updated: 2024/0
2/21 09:35:18
by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
/* */
/* ************************************************************************** */
@@
-18,7
+18,7
@@
static t_transfer g_trans;
static t_transfer g_trans;
-static void bit_rec
ie
ver(int signum)
+static void bit_rec
ei
ver(int signum)
{
if (signum == SIGUSR1)
g_trans.bit = 1;
{
if (signum == SIGUSR1)
g_trans.bit = 1;
@@
-36,7
+36,7
@@
static void setup_handler(void)
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGUSR1);
sigaddset(&sa.sa_mask, SIGUSR2);
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGUSR1);
sigaddset(&sa.sa_mask, SIGUSR2);
- sa.sa_handler = bit_rec
ie
ver;
+ sa.sa_handler = bit_rec
ei
ver;
sigaction(SIGUSR1, &sa, NULL);
sigaction(SIGUSR2, &sa, NULL);
return ;
sigaction(SIGUSR1, &sa, NULL);
sigaction(SIGUSR2, &sa, NULL);
return ;
@@
-50,7
+50,7
@@
static void general_setup(t_vec *string, pid_t *c_pid,
"You can contact me through my PID: %i.\n"
"For legibility I'll leave one empty line "
"after this initial message.\n"
"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 rec
ie
ved.\n"
+ "I'll also append empty line to every message rec
ei
ved.\n"
"I'm starting to print the messages now:\n\n", getpid());
*c_pid = 0;
*c_pid_known = 0;
"I'm starting to print the messages now:\n\n", getpid());
*c_pid = 0;
*c_pid_known = 0;