From Peter Schauer: Fix Solaris/x86 threads by copying linux code.

This commit is contained in:
Andrew Cagney 2000-02-29 13:53:59 +00:00
parent b241ba8eab
commit 05e28a7bbf
4 changed files with 18 additions and 64 deletions

View file

@ -5254,20 +5254,3 @@ procfs_first_available ()
else
return -1;
}
int
procfs_get_pid_fd (pid)
int pid;
{
procinfo *pi;
if (pid == -1 && inferior_pid != 0)
pi = find_procinfo (PIDGET (inferior_pid), 0);
else
pi = find_procinfo (PIDGET (pid), 0);
if (pi)
return pi->ctl_fd;
else
return -1;
}