<amz3>it seems like the process crash but without any notification <amz3>bash "echo $?" returns 141 <amz3>I will try to reproduce without using my eventloop <amz3>so I've rewritten the program without the asynchrnous procedure <amz3>it kind of works, execpt that when the server close the socket, the client can still send stuff <amz3>I mean the synchronous code can also fail in some occasion <amz3>basically the flow of the program is the following: <amz3>1) client connect to server <amz3>2) client send something <amz3>4) server close both connection and listenning socket <amz3>5) client try to receive something but receive an empty list <amz3>6) client goes to sleep 15 <amz3>7) client try to send something <amz3>end) client crash with error 141 <amz3>seems like a SIGPIPE error <amz3>it fails on guile-2.2 too <amz3>how do you declare an array part of a struct using guile-bytestructure ***karswell` is now known as karswell
<amz3>hey taylan, I got a question for you <amz3>how do you declare an array part of a struct using guile-bytestructure <amz3>and also how to declare a struct embededded in another struct <taylan>amz3: (bs:struct `((x ,(bs:vector 3 ,uint16)) (y ,(bs:struct `((z ,uint8) (t ,uint32)))))) <taylan>C equiv.: struct { uint16_t x[3]; struct { uint8_t z; uint32_t t; } y; } <amz3>taylan: another question how do you declare: struct { void something; } <amz3>should I use the star symbol '* ? <taylan>amz3: hmm, using any descriptor in place of void should do, e.g. uint8. there's no type-checking after all, and using void* means that you don't intend to dereference the pointer (without casting it to another type, which in this case would mean using another bs descriptor...) <taylan>amz3: actually, chances are (bs:pointer #f) will "just work" <taylan>if not, I guess I could implement it <taylan>amz3: yeah, (bs:pointer #f) works. and it will raise an error when you try to dereference the pointer. it doesn't raise an optimally informative error, but at least it errors instead of producing a wrong value. <janneke>BOOTSTRAP GUILEC language/cps/intset.go <janneke>ACTION wishes for ccache support in guile