Void Linux discussion
 help / Atom feed
* [void musl] mkfifo buffer exhibiting unexpected behaviour
@ 2019-01-17  7:14 Steven Hum
  2019-01-17 12:28 ` mail
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Hum @ 2019-01-17  7:14 UTC (permalink / raw)
  To: voidlinux

[-- Attachment #1.1: Type: text/plain, Size: 1434 bytes --]

I posted this on the musl mailing list (after being redirected on the 
voidlinux reddit forum):

> Running this simple test using clock from sutils to produce a repeating 
one second interval input stream..
> 
> mkfifo fifo
> clock -i 1 -sf "T> stream one" >fifo &
> clock -i 1 -sf "D> stream two" >fifo &
> cat fifo
> 
> on void musl only the second fifo input stream is displayed.
> on void glibc, both input streams are displayed interleaved as expected.
> 
> Are fifo buffers handled differently under musl?

The reply was:

*No, aside from possible stdio buffering it's entirely a kernel matter.*
I looked up the sutils source and see it's flushing after each output,
and tried it on an Alpine-based box here (with musl) and could not
reproduce what you're seeing. Both outputs are visible and roughly
interleaved (although their order sometimes swaps with scheduling, of
course).

--

So... is this a bug within void musl?

Regards,
Steven

-- 
You received this message because you are subscribed to the Google Groups "voidlinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com.
To post to this group, send email to voidlinux@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/76d8f6be-6ddb-4bb6-81f8-3a29482317b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2307 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [void musl] mkfifo buffer exhibiting unexpected behaviour
  2019-01-17  7:14 [void musl] mkfifo buffer exhibiting unexpected behaviour Steven Hum
@ 2019-01-17 12:28 ` mail
  2019-01-17 14:12   ` Steven Hum
  0 siblings, 1 reply; 3+ messages in thread
From: mail @ 2019-01-17 12:28 UTC (permalink / raw)
  To: Steven Hum, voidlinux

This looks more related to the used shell, I wasn't able to reproduce the issue.

-- 
You received this message because you are subscribed to the Google Groups "voidlinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com.
To post to this group, send email to voidlinux@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/1521124526.111813.1547728085347%40communicator.strato.de.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [void musl] mkfifo buffer exhibiting unexpected behaviour
  2019-01-17 12:28 ` mail
@ 2019-01-17 14:12   ` Steven Hum
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Hum @ 2019-01-17 14:12 UTC (permalink / raw)
  To: voidlinux

[-- Attachment #1.1: Type: text/plain, Size: 858 bytes --]

Using the void musl 20181111 live cd, I get this fifo error running the 
above test script under both #!/... bash and dash.

As reported, this is not an issue with the void glibc 20181111 live cd.

Puzzling..

On Thursday, 17 January 2019 07:28:06 UTC-5, ma...@duncano.de wrote:
>
> This looks more related to the used shell, I wasn't able to reproduce the 
> issue. 
>

-- 
You received this message because you are subscribed to the Google Groups "voidlinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com.
To post to this group, send email to voidlinux@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/d4a73e14-1fd0-42ca-9cc4-d5bf9e3ee4c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1433 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-17  7:14 [void musl] mkfifo buffer exhibiting unexpected behaviour Steven Hum
2019-01-17 12:28 ` mail
2019-01-17 14:12   ` Steven Hum

Void Linux discussion

Archives are clonable: git clone --mirror http://inbox.vuxu.org/voidlinux

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.voidlinux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox