c++ - gdb: interrupt running process without killing child processes -


i have process (call process a) kicks off several instances of process b. when debugging process in gdb, if use ctrl+c pause process sigint, child b processes killed, have restart whole thing once i'm done debugging process a. there way prevent gdb sending sigint child processes, killing them (at least assume that's what's happening)? if so, it?

note not have source code process b (so cannot add code handle sigint). process interfaces in c++.

try

    signal(sigint, sig_ign); 

in a. according man signal (emphasis mine),

a child created via fork(2) inherits copy of parent's signal dispositions. during execve(2), dispositions of handled signals reset default; the dispositions of ignored signals left unchanged.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -