mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
RPC detection fix
This commit is contained in:
parent
7656e6b9f8
commit
78c0f0a443
4 changed files with 22 additions and 29 deletions
|
@ -133,8 +133,7 @@ int rpc_send_command(int cmd, int forfd, void *data, int len)
|
|||
time_t timestamp;
|
||||
timestamp = time(NULL);
|
||||
strftime(timestring, sizeof(timestring), "%H:%M:%S", localtime(×tamp));
|
||||
|
||||
metabuf[IDX_SIGNAL_BYTE] = 'R';
|
||||
memcpy(metabuf, RPC_PHRASE, RPC_PHRASE_SIZE); // Write signal phrase
|
||||
|
||||
memcpy(&metabuf[IDX_PID], &pid, sizeof(pid_t) ); /* pid */
|
||||
memcpy(&metabuf[IDX_TID], &tid, sizeof(pid_t) ); /* tid */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue