Squeak --headless - what is the correct signal to stop Squeak?

David T. Lewis lewis at mail.msen.com
Tue Mar 15 02:26:39 UTC 2005


On Mon, Mar 14, 2005 at 03:21:55PM -0500, Milan Zimmermann wrote:
> Thanks for commenting about Windows, disk space etc. As and aside, I wonder if 
> a check for sufficient disk space should be somewhere in  #snapshot:andQuit: 
> , (for now I am just doing a "quit" on Linux only...)

Well, it would be nice if we could do this, but I'm afraid that it would be hard
to do it in a platform-independent way. You would need something like this, which
would probably drive the VM implementers nuts and cause no end of obscure bugs:

    primitiveFreeSpaceForFileSystemContaining: filePathName

A crude but effective way to achieve the same result would be to always save
the image to a new version number then quit (yes, this does save the image
twice, and yes it does waste lots of disk space).

  Smalltalk saveAsNewVersion.
  SmalltalkImage current snapshot: true andQuit: true.


Dave




More information about the Squeak-dev mailing list