Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 647714 Details for
Bug 874484
xlock exits on segfault, unlocking the screen
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Make xlock report correct exitcode if it dies from a signal
xlockmore-5.40-fix_exitcode.patch (text/plain), 858 bytes, created by
Denys Vlasenko
on 2012-11-19 12:21:56 UTC
(
hide
)
Description:
Make xlock report correct exitcode if it dies from a signal
Filename:
MIME Type:
Creator:
Denys Vlasenko
Created:
2012-11-19 12:21:56 UTC
Size:
858 bytes
patch
obsolete
>--- xlock/xlock.c 2011-05-24 03:53:46.000000000 +0200 >+++ xlock/xlock.c 2012-11-19 12:47:42.592261929 +0100 >@@ -1052,6 +1052,7 @@ syslogStop(char *displayName) > #endif > > char error_buf[ERROR_BUF]; >+static int error_exitcode = 1; > > void > error(const char *buf) >@@ -1068,7 +1069,14 @@ error(const char *buf) > #else > (void) fprintf(stderr, "%s", buf); > #endif >- exit(1); >+ if (error_exitcode < 0) { >+ int sig = -error_exitcode; >+ signal(sig, SIG_DFL); >+ raise(sig); >+ /* We are still alive?? */ >+ error_exitcode = sig + 128; >+ } >+ exit(error_exitcode); > } > > /* Server access control support. */ >@@ -2946,6 +2954,7 @@ sigcatch(int signum) > ProgramName: DEFAULT_NAME, signum, > (strlen(ProgramName) + strlen(name) < > ERROR_BUF - 2 * ERROR_LINE) ? name: "?", (long) getuid()); >+ error_exitcode = -signum; > error(error_buf); > #endif /* !WIN32 */ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 874484
: 647714