[sysprof/wip/chergert/sysprof-3] sysprofd: remove consistency check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] sysprofd: remove consistency check
- Date: Fri, 10 May 2019 21:28:13 +0000 (UTC)
commit 956ce89b966cad9dd3eae44191a33c6d0484c6e5
Author: Christian Hergert <chergert redhat com>
Date: Fri May 10 14:27:21 2019 -0700
sysprofd: remove consistency check
We can try and just let the syscall tell us what happened.
src/sysprofd/ipc-service-impl.c | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/src/sysprofd/ipc-service-impl.c b/src/sysprofd/ipc-service-impl.c
index ccde0de..9458db0 100644
--- a/src/sysprofd/ipc-service-impl.c
+++ b/src/sysprofd/ipc-service-impl.c
@@ -107,16 +107,6 @@ ipc_service_impl_handle_perf_event_open (IpcService *service,
g_message ("PerfEventOpen(pid=%d, cpu=%d)", pid, cpu);
- /* Consistency check for cpu/pid */
- if (pid < -1 || cpu < -1 || !(pid == -1 && cpu == -1))
- {
- g_dbus_method_invocation_return_error (g_steal_pointer (&invocation),
- G_DBUS_ERROR,
- G_DBUS_ERROR_INVALID_ARGS,
- "pid and cpu must be >= -1 and only one may be -1");
- return TRUE;
- }
-
/* Get the group_fd if provided */
message = g_dbus_method_invocation_get_message (invocation);
if ((in_fd_list = g_dbus_message_get_unix_fd_list (message)) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]