* fhandler_process.cc (format_process_ctty): Fix random content of
/proc/$PID/ctty if the process has no controlling tty. Set to just "\n" instead.
This commit is contained in:
parent
1c1fa247a6
commit
340854dda8
|
@ -1,3 +1,9 @@
|
||||||
|
2013-10-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_process.cc (format_process_ctty): Fix random content of
|
||||||
|
/proc/$PID/ctty if the process has no controlling tty. Set to just
|
||||||
|
"\n" instead.
|
||||||
|
|
||||||
2013-10-15 Corinna Vinschen <corinna@vinschen.de>
|
2013-10-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* autoload.cc (CryptAcquireContextW): Remove.
|
* autoload.cc (CryptAcquireContextW): Remove.
|
||||||
|
|
|
@ -433,8 +433,13 @@ format_process_gid (void *data, char *&destbuf)
|
||||||
static off_t
|
static off_t
|
||||||
format_process_ctty (void *data, char *&destbuf)
|
format_process_ctty (void *data, char *&destbuf)
|
||||||
{
|
{
|
||||||
device d;
|
|
||||||
_pinfo *p = (_pinfo *) data;
|
_pinfo *p = (_pinfo *) data;
|
||||||
|
if (p->ctty < 0)
|
||||||
|
{
|
||||||
|
destbuf = (char *) crealloc_abort (destbuf, 2);
|
||||||
|
return __small_sprintf (destbuf, "\n");
|
||||||
|
}
|
||||||
|
device d;
|
||||||
d.parse (p->ctty);
|
d.parse (p->ctty);
|
||||||
destbuf = (char *) crealloc_abort (destbuf, strlen (d.name) + 2);
|
destbuf = (char *) crealloc_abort (destbuf, strlen (d.name) + 2);
|
||||||
return __small_sprintf (destbuf, "%s\n", d.name);
|
return __small_sprintf (destbuf, "%s\n", d.name);
|
||||||
|
|
|
@ -15,3 +15,6 @@ Bug fixes:
|
||||||
|
|
||||||
- 64 bit only: Correctly mmap'ing regions > 4 Gigs.
|
- 64 bit only: Correctly mmap'ing regions > 4 Gigs.
|
||||||
Fixes: http://cygwin.com/ml/cygwin/2013-09/msg00155.html
|
Fixes: http://cygwin.com/ml/cygwin/2013-09/msg00155.html
|
||||||
|
|
||||||
|
- Fix random content of /proc/$PID/ctty if the process has no controlling
|
||||||
|
tty. Set to just "\n" instead.
|
||||||
|
|
Loading…
Reference in New Issue