English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 26 August 2017, 15:52   #1
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 424
queue-handler 40.4 problem

I think I have found a bug (regression comparing to Commodore implementation) in http://aminet.net/package/util/sys/HWGQueue - queue handler replacement, which is also a part of the unofficial OS 3.9 BoingBag 3&4. The use case is simple:

Code:
> echo >PIPE:testpipe a        ; this command executes without problems               
> echo >PIPE:testpipe a        ; doing again gives error, as you can see below
echo: unable to open redirection file
The Commodore implementation allows me to issue the second command, there is no error. Unfortunately, I can't contact the author (e-mail not valid anymore - hardly a surprise after over 20 years). Any idea? Am I trying to do something illegal?
Romanujan is offline  
Old 26 August 2017, 20:36   #2
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
Doing a manual flush between the two invocations appears to work around the issue:

echo >PIPE:testpipe a
type PIPE:testpipe >NIL:
echo >PIPE:testpipe a

Given the reasonably small size of the executable, it might be feasible in the future to disassemble/decompile it and compare against the official version, to isolate and fix the bug, assuming all attempts to contact Heinz Wrobel fail.
Minuous is offline  
Old 26 August 2017, 20:55   #3
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 424
This won't fix my problem - I want the first string to wait there until it is picked up by another process; not to be flushed away.

For now I had to go back to the original implementation.
Romanujan is offline  
Old 27 August 2017, 14:38   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
You may have a look at AWNPipe (Aminet). At least the following can be lauched several times without errors:
Code:
echo "hello World" >AWNPipe:test
daxb is online now  
Old 31 August 2017, 18:10   #5
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
BB3&4 1.37 has been released and can be downloaded from http://amigan.1emu.net/releases/#others . queue-handler 40.4 has been removed.
Minuous is offline  
Old 01 September 2017, 08:04   #6
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 424
IMHO this is the only sane solution for now.
Romanujan is offline  
Old 10 September 2017, 15:30   #7
HanSolo
Registered User
 
Join Date: Aug 2014
Location: Gdynia/Poland
Posts: 162
So which lastest version of queue handler should I copy to L: drawer ?
HanSolo is offline  
Old 10 September 2017, 22:28   #8
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
V37.12.
Minuous is offline  
Old 07 November 2017, 17:26   #9
HanSolo
Registered User
 
Join Date: Aug 2014
Location: Gdynia/Poland
Posts: 162
I see that you updated queue-handler from 37.12 to 50.20 in current BB4 1.38. What was changed ? Who make it ?
HanSolo is offline  
Old 07 November 2017, 18:15   #10
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 424
Code:
Queue-Handler 50.20
    * Rewritten from scratch.
    * Pipe names are now limited to 107 characters.
    * All FIFO data is now allocated from memory pools to reduce
      fragmentation. It also makes cleanup a little easier.
    * The handler now defaults to blocking mode. Unless specifically
      called for, writing to a pipe that has filled up will block until
      data has been drained by reading from it.
    * Pooling FIFO data could lose bytes. Fixed.
    * Writing zero bytes to a FIFO could have strange consequences. Fixed.
So far, seems to work.
Romanujan is offline  
Old 09 November 2017, 17:51   #11
HanSolo
Registered User
 
Join Date: Aug 2014
Location: Gdynia/Poland
Posts: 162
Ok but who make it ? Could this hero make more bugfixed system stuff ?
HanSolo is offline  
Old 10 November 2017, 04:32   #12
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
I don't know who made it. I will endeavour to ascertain this information.
Minuous is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropbox handler and AmigaOS 3.x Sir_Lucas support.Apps 20 19 March 2024 01:32
AmigaOS 3.x and Google Drive handler Sir_Lucas support.Apps 60 26 November 2020 11:06
Strange behavior when using blit queue in copper list losso Coders. Asm / Hardware 39 02 February 2018 08:24
Docs on writing a handler TCH Coders. System 9 18 June 2017 03:46
Mount TCP: handler amiga support.Apps 2 20 March 2009 13:13

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:20.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.18877 seconds with 13 queries