File: sig.cmd

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (25 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set trace-commands on
# Test that debugged program's signals are saved and restored across
# debug calls.
###  Testing that we have our signal set up...
info signals
###  Testing handle command...
handle TERM nostack
handle foo
handle 1000
handle TERM bogus 
eval kill -TERM $$
###  Should not have printed a stack trace above...
handle TERM noprint
handle TERM stack
handle INT nostop
eval kill -TERM $$
info signals
continue
###  Should have printed a stack trace above...
continue
where
continue
kill
y