Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index df12f6b8746de71a4a1ef952359abe2158268733..819817d149922d5b2a6b02eb42230a3e35f21fe6 100644 (file)
@@ -504,7 +504,6 @@ error_open:
                        closeret = run_as_unlink(shm_path,
                                        channel->uid, channel->gid);
                        if (closeret) {
-                               errno = -closeret;
                                PERROR("unlink %s", shm_path);
                        }
                }
@@ -1835,7 +1834,6 @@ void lttng_ustconsumer_del_channel(struct lttng_consumer_channel *chan)
                        }
                        ret = run_as_unlink(shm_path, chan->uid, chan->gid);
                        if (ret) {
-                               errno = -ret;
                                PERROR("unlink %s", shm_path);
                        }
                }
This page took 0.025424 seconds and 5 git commands to generate.