diff options
author | Rickard Green <[email protected]> | 2019-01-24 17:52:31 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2019-01-24 17:52:31 +0100 |
commit | 49eb25c80514b1e221cc516c423bbc45ba7cc107 (patch) | |
tree | 0d013d9a82099019e47a20804caa4675ab0b7734 /lib/erl_interface/src/not_used/send_link.c | |
parent | 3d909edaadcc13d42698f815662188ff35eab90a (diff) | |
parent | 1ff44ec786828c3eeb2114cfeb5dd47e1a7fae61 (diff) | |
download | otp-49eb25c80514b1e221cc516c423bbc45ba7cc107.tar.gz otp-49eb25c80514b1e221cc516c423bbc45ba7cc107.tar.bz2 otp-49eb25c80514b1e221cc516c423bbc45ba7cc107.zip |
Merge branch 'maint'
* maint:
Pluggable distribution socket implementation for EI
Diffstat (limited to 'lib/erl_interface/src/not_used/send_link.c')
-rw-r--r-- | lib/erl_interface/src/not_used/send_link.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/erl_interface/src/not_used/send_link.c b/lib/erl_interface/src/not_used/send_link.c index 7be476fd93..38fae27df4 100644 --- a/lib/erl_interface/src/not_used/send_link.c +++ b/lib/erl_interface/src/not_used/send_link.c @@ -50,6 +50,7 @@ static int link_unlink(int fd, const erlang_pid *from, const erlang_pid *to, char *s; int index = 0; int n; + unsigned tmo = ms == 0 ? EI_SCLBK_INF_TMO : ms; index = 5; /* max sizes: */ ei_encode_version(msgbuf,&index); /* 1 */ @@ -69,7 +70,7 @@ static int link_unlink(int fd, const erlang_pid *from, const erlang_pid *to, if (ei_trace_distribution > 1) ei_show_sendmsg(stderr,msgbuf,NULL); #endif - n = ei_write_fill_t(fd,msgbuf,index,ms); + n = ei_write_fill_t__(fd,msgbuf,index,tmo); return (n==index ? 0 : -1); } |