public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18653] New: spawn changes SIGPIPE SIG_DFL to SIG_IGN
@ 2015-07-10 11:57 jan.kratochvil at redhat dot com
  2024-01-04 13:22 ` [Bug gdb/18653] " ssbssa at sourceware dot org
  2024-01-05  4:36 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-07-10 11:57 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-05  4:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-10 11:57 [Bug gdb/18653] New: spawn changes SIGPIPE SIG_DFL to SIG_IGN jan.kratochvil at redhat dot com
2024-01-04 13:22 ` [Bug gdb/18653] " ssbssa at sourceware dot org
2024-01-05  4:36 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).