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

Re: [MiNT] Sockets



It seems to work well enough for me for gnu screen which supports named pipes. But sockets which are a bit more complex aren't working. I didn't really get into why. (trying to port tmux).

Thanks,
Mark


On 12/22/2014 04:21 PM, Helmut Karlowski wrote:
Am 22.12.2014, 21:12 Uhr, schrieb Mark Duckworth:

What's with sockets on mint? It seems that the traditional method of creating a unix domain socket doesn't work but mkfifo actually is backed by sockets now. Are there any tips or tricks like forcing the application to create a socket in /pipe/? (that doesn't seem to work btw).

The fifo-behaviour in MiNT does not really work. I've just fixed most of it (I hope), there is still an issue with user-rights. Once I think it's all ok, I'll commit.

I tested things like this:

S=1
tmp=.
mkfifo $tmp/fi-fo || exit
($cat -n <$tmp/fi-fo )                             &
(print -n a; sleep $S; print -n bcde) > $tmp/fi-fo &
($cat  <$tmp/fi-fo )                               &
echo $? 1>&2
wait
rm -f $tmp/fi-fo

(derived from the ksh93-testsuite).

I don't know if that is related to sockets.

-Helmut


--




--
Mark Duckworth
Infusix LLC
http://www.infusix.com
Mobile: (215) 859-3587
Office: (267) 702-0321
Fax: (206) 337-0801