scsh-users
[Top] [All Lists]

Re: Commander-S -- where are handle-signal-default and ignore-signal def

To: scsh-users@scsh.net
Subject: Re: Commander-S -- where are handle-signal-default and ignore-signal defined?
From: Eric Knauel <knauel@informatik.uni-tuebingen.de>
Date: Wed, 15 Feb 2006 13:35:02 +0100
Cc: Derek Peschel <dpeschel@eskimo.com>
List-id: <scsh-users.list-id.scsh.net>
On Wed 15 Feb 2006 10:08, Derek Peschel <dpeschel@eskimo.com> writes:

> On Wed, Feb 15, 2006 at 09:52:02AM +0100, Eric Knauel wrote:
>> Ah, I just realized that I didn't mention the third patch in Commander
>> S's README that is needed to fix an off-the-shelf scsh 0.6.6.  Here it
>> is:
>
> And at that spot I see an empty attachment.  Please send the patch
> again.

Second attempt:

Index: scsh/scsh-interfaces.scm
===================================================================
RCS file: /cvsroot/scsh/scsh/scsh/scsh-interfaces.scm,v
retrieving revision 1.55.2.6
retrieving revision 1.55.2.7
diff -u -r1.55.2.6 -r1.55.2.7
--- scsh/scsh-interfaces.scm    30 May 2005 12:59:05 -0000      1.55.2.6
+++ scsh/scsh-interfaces.scm    13 Sep 2005 13:14:16 -0000      1.55.2.7
@@ -437,9 +437,9 @@
 (define-interface scsh-signals-interface
   (export signal-process
          signal-process-group
-         ;; JMG: this syscalls doesn't cooperate with the thread-system 
+         ;; JMG: this syscall doesn't cooperate with the thread-system 
          ;;      pause-until-interrupt   
-         itimer  ;; now defined in low-interrupt as a artificial interrupt
+         itimer  ;; now defined in low-interrupt as an artificial interrupt
 ))
 
 
@@ -1061,6 +1061,9 @@
          set-interrupt-handler
          interrupt-handler
 
+          ignore-signal
+          handle-signal-default
+
          ;; reexported from low-interrupt
          interrupt/alrm interrupt/alarm
          interrupt/int  interrupt/keyboard
>> Looks good.  Installing Commander S will be easier once scsh 0.6.7 is
>> released...
>
> By the way, do you know how to increase the default heap size in Scheme48?
> I tried something like "./configure CFLAGS=-DDEFAULT_HEAP_SIZE=6250000"
> (the exact line isn't in my bash history, it seems) and then "make" and
> "sudo make install" in the root of the scsh distribution. 

Unfortunately, it's not that simple.  Actually, the file "bin/scsh" is
a sh-script that runs the scsh virtual machine with a certain heap
image.  To make the vm allocate more heap add the command line
argument "-h num" where num is the heap size in number of words to
that line.  For 32 MB heap, the Makefile line looks like this:

echo 'exec $$lib/$(VM) -h 8388608 -i $$lib/$(IMAGE) "$$@"' \

However, if you want to run Commander S with more heap, you have to
modify its install.scm.  The variable IMAGE-HEADER contains the exec
call for the scshvm, just add "-h num" there:

(define image-header 
  (format #f "#!~a/scsh/scshvm -h 8388608\\\n-o ~a/scsh/scshvm -i\n" 
          (lib-dir) (lib-dir)))

I think adding a command line option to the commander-s binary to
specify the heap size is a good idea.  I'll try to do that.

> Then I reinstalled Commander-S.  The warning from Commander-S still
> appeared.  I do need to make sure old copies of things aren't
> hanging around (as I said, I'm still learning about the package
> system, and my previous builds may have left files in places I
> haven't cleaned out).

Which warning?  The warning about undefined variables or the warning
concerning the heap size?

-Eric
-- 
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)
<Prev in Thread] Current Thread [Next in Thread>