gdb/inflow.c: Move SIGTTOU temporary ignoring to a RAII class
authorPedro Alves <palves@redhat.com>
Thu, 16 Nov 2017 18:44:42 +0000 (18:44 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 16 Nov 2017 18:44:42 +0000 (18:44 +0000)
commite2c33ac745108550dcc2dc61d23378fb2fa9e911
treeeb5d27c5f5944284891105c67564e669a9f057c0
parentea04e54ca8b935b01155c3d40381d879dd6ba683
gdb/inflow.c: Move SIGTTOU temporary ignoring to a RAII class

I expect to use this in more places (in inflow.c) in follow up
patches, but I think this is still good on its own.

gdb/ChangeLog:
2017-11-16  Pedro Alves  <palves@redhat.com>

* inflow.c (scoped_ignore_sigttou): New class.
(child_terminal_ours_1, new_tty): Use it.
gdb/ChangeLog
gdb/inflow.c