diff options
author | William Cohen <wcohen@localhost.localdomain> | 2008-04-24 14:00:42 -0400 |
---|---|---|
committer | William Cohen <wcohen@localhost.localdomain> | 2008-04-24 14:00:42 -0400 |
commit | ef2ac8240b1e6f018c8f335f548f8dbb294ecebf (patch) | |
tree | 3a464c3da114824fdc45b888d206b0378bc46a0e /runtime/staprun/ctl.c | |
parent | 5d78de141c80af91827328fe57887414889121e2 (diff) | |
parent | fe44e686c32ccb684bd5ec6df57aed00532fc024 (diff) | |
download | systemtap-steved-ef2ac8240b1e6f018c8f335f548f8dbb294ecebf.tar.gz systemtap-steved-ef2ac8240b1e6f018c8f335f548f8dbb294ecebf.tar.xz systemtap-steved-ef2ac8240b1e6f018c8f335f548f8dbb294ecebf.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
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; } } |