Re: CentOS 7 as a guest VM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12/3/19 8:46 AM, Jerry Geis wrote:
I am experiencing an issue that my process does not wake out of a select()
call when a single character is received in an input file descriptor when
running as a VMware guest.

Anyone ever experienced this ?

I can run tshark and see the character arrive, but my process does not wake
up and see that character. Most times it works - but once in a while it
does not.

So I made a change on my code - and did not just wait on select() - but
just try to read the buffer all the time and print the results.  once in a
while that character is "delayed" getting to my input buffer.  Top reports
the machine is 99% idle.

Any thoughts?

Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos
You don't say what the app is written in but I ran into this with perl.  perl apps can either be line buffered or character buffered ($| if I remember right is the switch).  Line buffered means the buffer is not delivered until a newline character is received.  If nothing else, try "<char>\n" and see if that gets consistently delivered.

Cheers,
Dave

--
"They that can give up essential liberty to obtain a little temporary safety deserve neither safety nor liberty."

-- Benjamin Franklin

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux