*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <fcntl.h>
#include <grp.h>
#include <limits.h>
struct run_as_ret recvret;
struct run_as_worker *worker;
- assert(!global_worker);
+ LTTNG_ASSERT(!global_worker);
if (!use_clone()) {
/*
* Don't initialize a worker, all run_as tasks will be performed
if (use_clone()) {
DBG("Using run_as worker");
- assert(global_worker);
+ LTTNG_ASSERT(global_worker);
ret = run_as_cmd(global_worker, cmd, data, ret_value, uid, gid);
saved_errno = ret_value->_errno;