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 162069 Details for
Bug 253873
[RHEL5] SIGTTIN may terminate read() with -ERESTARTSYS
[?]
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]
proposed patch
tty-jobcontrol.patch (text/plain), 1.48 KB, created by
Aristeu Rozanski
on 2007-08-22 15:16:37 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Aristeu Rozanski
Created:
2007-08-22 15:16:37 UTC
Size:
1.48 KB
patch
obsolete
>Index: tree/drivers/char/n_tty.c >=================================================================== >--- tree.orig/drivers/char/n_tty.c >+++ tree/drivers/char/n_tty.c >@@ -1192,6 +1192,7 @@ static int job_control(struct tty_struct > is_orphaned_pgrp(process_group(current))) > return -EIO; > kill_pg(process_group(current), SIGTTIN, 1); >+ set_thread_flag(TIF_SIGPENDING); > return -ERESTARTSYS; > } > } >Index: tree/drivers/char/tty_io.c >=================================================================== >--- tree.orig/drivers/char/tty_io.c >+++ tree/drivers/char/tty_io.c >@@ -1129,7 +1129,8 @@ int tty_check_change(struct tty_struct * > return 0; > if (is_orphaned_pgrp(process_group(current))) > return -EIO; >- (void) kill_pg(process_group(current), SIGTTOU, 1); >+ kill_pg(process_group(current), SIGTTOU, 1); >+ set_thread_flag(TIF_SIGPENDING); > return -ERESTARTSYS; > } > >Index: tree/include/linux/errno.h >=================================================================== >--- tree.orig/include/linux/errno.h >+++ tree/include/linux/errno.h >@@ -5,7 +5,12 @@ > > #ifdef __KERNEL__ > >-/* Should never be seen by user programs */ >+/* >+ * These should never be seen by user programs. To return one of ERESTART* >+ * codes, signal_pending() MUST be set. Note that ptrace can observe these >+ * at syscall exit tracing, but they will never be left for the debugged user >+ * process to see. >+ */ > #define ERESTARTSYS 512 > #define ERESTARTNOINTR 513 > #define ERESTARTNOHAND 514 /* restart if no handler.. */
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 253873
:
162068
| 162069