Bug 805753 - scim-bridge "The lockfile is destroied" in syslog when gnome-terminal exits
Summary: scim-bridge "The lockfile is destroied" in syslog when gnome-terminal exits
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: scim-bridge
Version: 5.8
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Peng Wu
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 02:26 UTC by masaya.hasegawa.hp
Modified: 2019-12-16 04:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-14 09:13:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (564 bytes, patch)
2012-04-11 04:23 UTC, Peng Wu
no flags Details | Diff
Proposed patch v2 (564 bytes, patch)
2012-04-11 07:01 UTC, Peng Wu
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0578 0 normal SHIPPED_LIVE scim-bridge bug fix update 2012-05-14 13:09:36 UTC

Description masaya.hasegawa.hp 2012-03-22 02:26:31 UTC
Description of problem:

When gnome-terminal exit, the below scim-bridge error message is always
logged.

scim-bridge: The lockfile is destroied 

On destroy_lockfile (), unlink lockfile.(See the below)
If unlinking is success, this message is logged.
After the message is logged, the below message is logged with
Info level.
scim-bridge: Cleanup, done. Exitting...

So I think this message be not Error level but Info or Debug level,
and it be logged with useing scim_bridge_pdebugln() or 
scim_bridge_println().

//
retval_t ScimBridgeAgentImpl::destroy_lockfile ()
{
    scim_bridge_pdebugln (7, "Destroying the lockfile...");

    const char *lockfile_path = scim_bridge_path_get_lockfile ();

    if (unlink (lockfile_path)) {
        scim_bridge_perrorln ("Cannot destroy the lockfile");
        return RETVAL_FAILED;
    } else {
        scim_bridge_perrorln ("The lockfile is destroied"); <===
        return RETVAL_SUCCEEDED;
    }
}
//

Version-Release number of selected component (if applicable):

scim-bridge-0.4.5-10.el5

How reproducible:


Steps to Reproduce:
1. open gnome-terminal with scim enabled
2.  exit gonme-terminal 
3.
  
Actual results:

The below error message is logged in /var/log/messages.
scim-bridge: The lockfile is destroied 

Expected results:

Not error message but debug or info message is logged.

Additional info:

Though there is no problem on the use, a monitoring tool is 
checking error level message of syslog. If it find the message,
it will notify as error.

Comment 2 Peng Wu 2012-04-11 04:23:43 UTC
Created attachment 576668 [details]
Proposed patch

Comment 3 Peng Wu 2012-04-11 07:01:56 UTC
Created attachment 576686 [details]
Proposed patch v2

Fixes a typo.

Comment 7 errata-xmlrpc 2012-05-14 09:13:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0578.html


Note You need to log in before you can comment on or make changes to this bug.