Move stream name creation to fct create_ust_stream
authorDavid Goulet <dgoulet@efficios.com>
Mon, 21 Jan 2013 17:03:55 +0000 (12:03 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 21 Jan 2013 17:03:55 +0000 (12:03 -0500)
This is for two reasons. First, to avoid for the caller to create the
stream name. Second, on snprintf() error, we can't continue so put back
the reserved FDs and return an error.

We do that name creation now *before* the stream is created on the
application side so we don't have to release that object on error.

Only after that the stream is added to the list and the channel count
updated. This makes more sense and better handle the error path. Also,
this patch removes a XXX: statement which are always not cool on
production software :).

Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.029456 seconds and 5 git commands to generate.