Good Morning,
I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.
This all works fine on my development box but does not work from the
bootable floppy.
The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well), here’s my
ENV.
HOME=/
IFS=
KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=>
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set
I have the following /usr/lib/terminfo data on the floppy.
drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x
drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108
…
From the ksh I can see the ^C when I type it but it will not interrupt a
process run from that shell, what am I missing?
Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.
Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P
Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M
Boot from Flop at — – --:-- Locators:
SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 //1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 //1/bin/Dev 24f RECV 0 32k 73k
0 17 //1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 //1/bin/ksh 10o WAIT -1 47k 36k
0 37 //1/bin/sin 10o REPLY 1 45k 32k
Thanks,
Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com