Fix lttng error value
This commit is contained in:
parent
031f30460a
commit
a577710ef1
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ def _create_session(session_name, directory):
|
||||||
Create session from name and directory path, and check for errors
|
Create session from name and directory path, and check for errors
|
||||||
"""
|
"""
|
||||||
result = create(session_name, directory)
|
result = create(session_name, directory)
|
||||||
LTTNG_ERR_EXIST_SESS = -28
|
LTTNG_ERR_EXIST_SESS = 28
|
||||||
if result == LTTNG_ERR_EXIST_SESS:
|
if result == -LTTNG_ERR_EXIST_SESS:
|
||||||
# Sessions seem to persist, so if it already exists,
|
# Sessions seem to persist, so if it already exists,
|
||||||
# just destroy it and try again
|
# just destroy it and try again
|
||||||
lttng_destroy(session_name)
|
lttng_destroy(session_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue