Transcript clear.[(WikitextModule allSubclasses select:[:module | (module pagetitle indexOf:$/ ifAbsent:[0]) > 0])do:[:m | |ss f d cmd shell content ios|ss := m pagetitle squeakToUtf8 findBetweenSubStrs: '/'.d := ss collect:[:each | each] from: 1 to: (ss size -1).((d at:1) = 'Sandbox') | ((d at:1) beginsWith:'User:') "handle Sandbox and User: here"ifTrue:[]ifFalse:[d := d inject:'' into:[:a :b | a, '/', b].f := ('lua',d, '/', ss last, '.lua') squeakToUtf8 . "ios writes to shared by default"cmd := 'mkdir -p shared/lua', d. "commandshell writes to squeak root directory, so we prepende 'shared' to it"Transcript show: (m name), ' : ', cmd; cr.shell := PipeableOSProcess bash.shell pipeFromOutput reader setNonBlocking.shell exec: cmd.(Delay forMilliseconds: 400) wait.Transcript show: shell upToEnd ; cr.shell close.content := m lua squeakToUtf8.ios := FileStream newFileNamed: f.ios isNilifFalse:[content storeOn: ios.ios close.]]]] ifError:[:x :y | Transcript show: x;cr. y close. thisContext resume]
Can you say something about how you get to the point of getting
this error, and what operating system you are using? The code
snippet looks odd to me because it appears to be a decompiled
version of the method in OSProcess. Maybe you do not have a
changes file to go with your image file?
A typical reason for failing to create pipes is that you have
somehow opened too many file handles for your VM, possibly by
opening a lot of pipes and not closing them completely.
Dave
On Fri, Aug 30, 2019 at 07:58:50AM -0500, tty wrote:
> In
>
>
> ExternalPipe>>
> makePipe
> | t1 |
> *t1 := OSProcess accessor makePipeHandles.*
> t1 isNil
> ifTrue: [self error: 'cannot create OS pipe']
> ifFalse: [self
> reader: (AttachableFileStream
> name: 'pipeReader'
> attachTo: (t1 at: 1)
> writable: false).
> self
> writer: (AttachableFileStream
> name: 'pipeWriter'
> attachTo: (t1 at: 2)
> writable: true)]
>
>
> OSProcess accessor is a * 'a UnixOSProcessAccessor on pid 19790'*
>
>
> Where *self makePipeHandles* returns and undefined object.
>
> How should I think about this?
>
> thnks
>
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Squeak-Beginners-f107673.html
> _______________________________________________
> Beginners mailing list
> Beginners@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners