projects
/
platform
/
upstream
/
polkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f207e4f
)
Don't set the GError if the process doesn't exist
author
David Zeuthen
<davidz@redhat.com>
Wed, 12 Aug 2009 15:51:52 +0000
(11:51 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Wed, 12 Aug 2009 15:51:52 +0000
(11:51 -0400)
src/polkit/polkitunixprocess.c
patch
|
blob
|
history
diff --git
a/src/polkit/polkitunixprocess.c
b/src/polkit/polkitunixprocess.c
index
a3813c2
..
d559a4f
100644
(file)
--- a/
src/polkit/polkitunixprocess.c
+++ b/
src/polkit/polkitunixprocess.c
@@
-354,7
+354,7
@@
polkit_unix_process_exists_sync (PolkitSubject *subject,
start_time = get_start_time_for_pid (process->pid, &local_error);
if (local_error != NULL)
{
- g_propagate_error (error, local_error);
+ /* Don't propagate the error - it just means there is no process with this pid */
g_error_free (local_error);
ret = FALSE;
}
@@
-363,11
+363,6
@@
polkit_unix_process_exists_sync (PolkitSubject *subject,
if (start_time != process->start_time)
{
ret = FALSE;
- g_set_error (error,
- POLKIT_ERROR,
- POLKIT_ERROR_FAILED,
- "Start times for pid %d do not match",
- (gint) process->pid);
}
}