This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/18653] New: spawn changes SIGPIPE SIG_DFL to SIG_IGN
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 10 Jul 2015 11:57:24 +0000
- Subject: [Bug gdb/18653] New: spawn changes SIGPIPE SIG_DFL to SIG_IGN
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18653
Bug ID: 18653
Summary: spawn changes SIGPIPE SIG_DFL to SIG_IGN
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target Milestone: ---
That is a program run under GDB "run" behaves differently than standalone.
standalone: SIG_DFL
GDB linux-nat: FAIL: SIG_IGN
GDB gdbserver legacy: PASS: SIG_DFL
GDB gdbserver multi: FAIL: SIG_IGN
-----------------------------------------
#define _GNU_SOURCE
#include <stdio.h>
#include <signal.h>
int main(void) {
sighandler_t s=signal(SIGPIPE,SIG_DFL);
if (s==SIG_DFL) puts("SIG_DFL");
if (s==SIG_IGN) puts("SIG_IGN");
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.