Skip to content

Commit

Permalink
Merge pull request #35 from beordle/fix_a_deadlock
Browse files Browse the repository at this point in the history
fix a deadlock
  • Loading branch information
beordle authored May 11, 2022
2 parents c7e24b1 + ca927a5 commit aa5349e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ void uvloop_process_income(uv_async_t *handle) {

if (get_state_mode() == MODE_SERVER_PROCESS) {
if (!server_see_agent_is_repl) {
queue_unlock_internal(q);
return;
}
send_base64binary_to_agent(f->buf, f->len);
Expand Down
4 changes: 3 additions & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/

#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/socket.h>
#include "utils.h"
#include "log.h"
#include <arpa/inet.h>
Expand Down

0 comments on commit aa5349e

Please sign in to comment.