summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2005-09-06 17:13:30 +0000
committerhunt <hunt>2005-09-06 17:13:30 +0000
commita899efa27ced5705b76155eee371bc16cdb2742e (patch)
tree4083c446655955778780bfed7ef2595a15402846 /runtime
parent2c89cb8b7a244e2327b8f92074ca4ed137c991e1 (diff)
downloadsystemtap-steved-a899efa27ced5705b76155eee371bc16cdb2742e.tar.gz
systemtap-steved-a899efa27ced5705b76155eee371bc16cdb2742e.tar.xz
systemtap-steved-a899efa27ced5705b76155eee371bc16cdb2742e.zip
2005-09-06 Martin Hunt <hunt@redhat.com>
* transport.c (_stp_handle_start): Always reply to a start message with STP_START.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/transport/ChangeLog5
-rw-r--r--runtime/transport/transport.c9
2 files changed, 8 insertions, 6 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog
index 18a8b480..ed0b4329 100644
--- a/runtime/transport/ChangeLog
+++ b/runtime/transport/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-06 Martin Hunt <hunt@redhat.com>
+
+ * transport.c (_stp_handle_start): Always reply to
+ a start message with STP_START.
+
2005-08-24 Martin Hunt <hunt@redhat.com>
* transport_msgs.h (enum): New type, STP_OOB_DATA.
diff --git a/runtime/transport/transport.c b/runtime/transport/transport.c
index d3e5ff5e..fdd91078 100644
--- a/runtime/transport/transport.c
+++ b/runtime/transport/transport.c
@@ -88,14 +88,11 @@ static void _stp_handle_buf_info(int *cpuptr)
*/
void _stp_handle_start (struct transport_start *st)
{
- int err;
kbug ("stp_handle_start pid=%d\n", st->pid);
- err = probe_start();
- if (err < 0) {
- st->pid = err;
+ st->pid = probe_start();
+ if (st->pid < 0)
_stp_exit_called = 1;
- _stp_transport_send(STP_START, st, sizeof(*st));
- }
+ _stp_transport_send(STP_START, st, sizeof(*st));
}
#ifdef STP_RELAYFS