mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
subdaemon: suppress overzealous _FORTIFY_SOURCE warning.
Ubuntu defines _FORTIFY_SOURCE when compiling with optimization. This insanity is the result. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
ad1cf8b40c
commit
c13a355cf2
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ void subdaemon_setup(int argc, char *argv[])
|
|||
if (streq(argv[i], "--debugger")) {
|
||||
char *cmd = tal_fmt(NULL, "${DEBUG_TERM:-gnome-terminal --} gdb -ex 'attach %u' %s &", getpid(), argv[0]);
|
||||
fprintf(stderr, "Running %s\n", cmd);
|
||||
system(cmd);
|
||||
/* warn_unused_result is fascist bullshit.
|
||||
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 */
|
||||
if (system(cmd))
|
||||
;
|
||||
/* Continue in the debugger. */
|
||||
kill(getpid(), SIGSTOP);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue