[gnome-builder] worker: invalid unix_pid returns -1, not zero.
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] worker: invalid unix_pid returns -1, not zero.
- Date: Mon, 2 Nov 2015 15:06:23 +0000 (UTC)
commit af71f1132cb65457d1adef884fbacc0399909d2a
Author: Boris Egorov <egorov linux com>
Date: Mon Nov 2 20:58:38 2015 +0600
worker: invalid unix_pid returns -1, not zero.
70402f02e1c199b728188c51386d9aaedb737353 fixes only one of the two
issues with g_credentials_get_unix_pid().
Signed-off-by: Boris Egorov <egorov linux com>
libide/ide-worker-process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-worker-process.c b/libide/ide-worker-process.c
index 38506af..dac6b1a 100644
--- a/libide/ide-worker-process.c
+++ b/libide/ide-worker-process.c
@@ -336,7 +336,7 @@ ide_worker_process_matches_credentials (IdeWorkerProcess *self,
if ((self->subprocess != NULL) &&
(identifier = g_subprocess_get_identifier (self->subprocess)) &&
- (pid = g_credentials_get_unix_pid (credentials, NULL)))
+ (pid = g_credentials_get_unix_pid (credentials, NULL)) != -1)
{
str = g_strdup_printf ("%d", (int)pid);
if (g_strcmp0 (identifier, str) == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]