[OpenSmalltalk/opensmalltalk-vm] Fix image opening on unix (#529)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] Fix image opening on unix (#529)

David T Lewis
 

In imgInit() of sqUnixMain.c

  • preserve fd instead of throwing it away
  • use fileno() to get the file descriptor (fd) created by fopen() instead of
    opening the file again with open() (which leaked a file descriptor due to
    lack of close())
  • pass the file descriptor fd instead of the FILE* f to the recently changed
    methods expecting a file descriptor, e.g. readImageFromFileHeapSizeStartingAt()

You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529

Commit Summary

  • Fix image opening on unix

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Fix image opening on unix (#529)

David T Lewis
 

@eliotmiranda approved this pull request.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529#pullrequestreview-512198218", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529#pullrequestreview-512198218", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Fix image opening on unix (#529)

David T Lewis
In reply to this post by David T Lewis
 

Merged #529 into Cog.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529#event-3895738142", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/529#event-3895738142", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>