* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <stdlib.h>
#include <unistd.h>
if (!ht) {
return;
}
- if (fd < 0)
- return;
+ assert(fd >= 0);
ret = lttng_write(fd, &ht, sizeof(ht));
if (ret < sizeof(ht)) {
PERROR("write ht cleanup pipe %d", fd);