- int ret, i;
-
- if (dst == NULL) {
- return -1;
- }
-
- ret = utils_create_pipe(dst);
- if (ret < 0) {
- goto error;
- }
-
- for (i = 0; i < 2; i++) {
- ret = fcntl(dst[i], F_SETFD, FD_CLOEXEC);
- if (ret < 0) {
- PERROR("fcntl pipe cloexec");
- goto error;
+ int match = 1;
+
+ if (a_loglevel_type == b_loglevel_type) {
+ /* Same loglevel type. */
+ if (b_loglevel_type != loglevel_all_type) {
+ /*
+ * Loglevel value must also match since the loglevel
+ * type is not all.
+ */
+ if (a_loglevel_value != b_loglevel_value) {
+ match = 0;
+ }