summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/staprun.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun/staprun.c')
-rw-r--r--runtime/staprun/staprun.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index daebe705..6eb6d8b5 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -385,8 +385,13 @@ void send_relocation_modules ()
int send_relocations ()
{
- int rc = send_relocation_kernel ();
+ int rc;
+ rc = init_ctl_channel (modname, 0);
+ if (rc < 0) goto out;
+ rc = send_relocation_kernel ();
send_relocation_modules ();
+ close_ctl_channel ();
+ out:
return rc;
}