Reputation: 1335
The question is simple- is it possible to write the program, that:
/bin/bash
; not a function), and waits until it endsand
SIGINT
or SIGSEGV
signals sent to the subprogram?Upvotes: 0
Views: 497
Reputation: 3452
First is easy.
Second is "maybe", depends on what do you want exactly. ptrace()
system call may help. Using ptrace is not what most people want on daily bases, but it may suite you.
Upvotes: 1