]> sourceware.org Git - systemtap.git/commit
stapio main loop: always time out on pselect()
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 23 Mar 2016 22:02:15 +0000 (18:02 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 24 Mar 2016 00:42:50 +0000 (20:42 -0400)
commit6d04c012a2a9699c99e56e8a54c5d60c93c91af5
tree1347cabae6bfa4bb1be22d396b92552bbd5b734d
parenta447ee869a43aba75357eed261cb8f8b3ea04584
stapio main loop: always time out on pselect()

The main thread's pselect() call must now get a timeout setting too,
because it is responsible for orderly shutdown of the stap module in
case of interrupts.  Without a polling timeout, the pselect() can just
sit there, with other reader threads happily continuing their work,
as though the ^C never took effect.
staprun/mainloop.c
This page took 0.022939 seconds and 5 git commands to generate.