Linux waitpid/__WALL emulation wrapper: If WNOHANG is set, don't touch sigprocmask.
authorPedro Alves <palves@redhat.com>
Thu, 27 Feb 2014 14:44:16 +0000 (14:44 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 27 Feb 2014 14:44:16 +0000 (14:44 +0000)
commit2fa0369e5127bff4ea68b596b1984314feb68299
treed38d416063b41265e5598b90bec30c8c7e05e54d
parent1db37fe62781b677a37acbe801c1e69d8912a124
Linux waitpid/__WALL emulation wrapper: If WNOHANG is set, don't touch sigprocmask.

Just a small optimization.  No need to block/unblock signals if we're
not going to call sigsuspend.

gdb/
2014-02-27  Pedro Alves  <palves@redhat.com>

* nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
isn't set.
gdb/ChangeLog
gdb/nat/linux-waitpid.c