This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/12591] Using a compile server breaks signaled cleanup
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 17 Mar 2011 18:39:21 +0000
- Subject: [Bug translator/12591] Using a compile server breaks signaled cleanup
- Auto-submitted: auto-generated
- References: <bug-12591-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12591
--- Comment #1 from Josh Stone <jistone at redhat dot com> 2011-03-17 18:39:13 UTC ---
Added commit b7a0f5a:
PR12591: Setup the signal handler earlier
We were calling setup_signals() in passes_0_4(), but --use-server
diverts that execution path, so signaled cleanup wasn't working in that
case at all. It's also possible with multiple --remotes that
passes_0_4() will be called multiple times, though that shouldn't really
hurt signal handling. This patch moves setup_signals() to main(), so it
is called once early on.
* main.cxx (passes_0_4): Don't call setup_signals() here.
(main): Call setup_signals() here instead.
Now the signaled cleanup happens correctly in every case that I see. However,
if interrupted while the server is busy, we end up waiting for that completion
before actually exiting. It would be nice if the remote server were also
signaled so we could have a more timely exit.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.