[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] question about signal handler
From: |
Valentyn Kamyshenko |
Subject: |
[Chicken-users] question about signal handler |
Date: |
04 Oct 2002 00:12:55 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
Hello,
it appears that on my system the signal handling is performing in a
very strange way.
In my understanding, the program below, being compiled and started,
should print "hello" and exit when I send it the SIGHUP signal. It
does not. Instead, it prints "hello" when the "sleep" is finished
(either after 30 secs or being killed). I tried also
process-run/process-wait combination - with a similar result.
Will be very appreciated for your help.
OS: various x86 Linux'es
Compilation: csc -o signal_test signal_test.scm
;===== signal_test.scm ======
(declare (uses posix)
(interrupts-enabled))
(set-signal-handler! signal/hup (lambda (s) (display "hello\n") (exit)))
(system "sleep 30")
;============================
--
Regards,
Valentyn Kamyshenko
- [Chicken-users] question about signal handler,
Valentyn Kamyshenko <=