Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main( int argc, char *argv[] ) {
char *buffer = malloc(buffer_len * sizeof(char));
char *response = NULL;
time_t last_operation;
__pid_t pid = -1;
pid_t pid = -1;

while (1) {
int client_fd = accept(server_fd, (struct sockaddr *) &client_sockaddr, &client_socklen);
Expand Down Expand Up @@ -121,4 +121,4 @@ int main( int argc, char *argv[] ) {
close(client_fd);
}
}
}
}