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 155849 Details for
Bug 240349
wait4()'s rusage sometimes wrong when threads present across exec*()
[?]
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]
patch for fixing de_thread() to properly init signal_struct fields
de_thread.patch (text/plain), 1.50 KB, created by
Ernie Petrides
on 2007-05-31 23:28:54 UTC
(
hide
)
Description:
patch for fixing de_thread() to properly init signal_struct fields
Filename:
MIME Type:
Creator:
Ernie Petrides
Created:
2007-05-31 23:28:54 UTC
Size:
1.50 KB
patch
obsolete
>--- linux-2.6.9/fs/exec.c.orig >+++ linux-2.6.9/fs/exec.c >@@ -624,19 +624,34 @@ static inline int de_thread(struct task_ > return -ENOMEM; > } > atomic_set(&newsig->count, 1); >+ newsig->curr_target = NULL; >+ init_sigpending(&newsig->shared_pending); > newsig->group_exit = 0; > newsig->group_exit_code = 0; > newsig->group_exit_task = NULL; >+ newsig->notify_count = 0; > newsig->group_stop_count = 0; >- newsig->curr_target = NULL; >- init_sigpending(&newsig->shared_pending); >+ newsig->stop_state = 0; > INIT_LIST_HEAD(&newsig->posix_timers); > >- newsig->tty = oldsig->tty; > newsig->pgrp = oldsig->pgrp; >+ newsig->tty_old_pgrp = oldsig->tty_old_pgrp; > newsig->session = oldsig->session; > newsig->leader = oldsig->leader; >- newsig->tty_old_pgrp = oldsig->tty_old_pgrp; >+ newsig->tty = oldsig->tty; >+ >+ newsig->utime = oldsig->utime; >+ newsig->stime = oldsig->stime; >+ newsig->cutime = oldsig->cutime; >+ newsig->cstime = oldsig->cstime; >+ newsig->nvcsw = oldsig->nvcsw; >+ newsig->nivcsw = oldsig->nivcsw; >+ newsig->cnvcsw = oldsig->cnvcsw; >+ newsig->cnivcsw = oldsig->cnivcsw; >+ newsig->min_flt = oldsig->min_flt; >+ newsig->maj_flt = oldsig->maj_flt; >+ newsig->cmin_flt = oldsig->cmin_flt; >+ newsig->cmaj_flt = oldsig->cmaj_flt; > #ifdef CONFIG_KEYS > rcu_read_lock(); > newsig->session_keyring = >@@ -645,6 +660,7 @@ static inline int de_thread(struct task_ > > newsig->process_keyring = key_get(oldsig->process_keyring); > #endif >+ atomic_set(&newsig->live, 1); > } > > if (thread_group_empty(current))
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 240349
:
154850
| 155849