diff options
Diffstat (limited to 'runtime/staprun/ctl.c')
-rw-r--r-- | runtime/staprun/ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/staprun/ctl.c b/runtime/staprun/ctl.c index 15c5c3d3..4597bf72 100644 --- a/runtime/staprun/ctl.c +++ b/runtime/staprun/ctl.c @@ -46,8 +46,8 @@ int init_ctl_channel(const char *name, int verb) void close_ctl_channel(void) { - if (control_channel > 0) { + if (control_channel >= 0) { close(control_channel); - control_channel = 0; + control_channel = -1; } } |