[ ssic-linux-Bugs-2033804 ] On OpenSSI /proc/$$/fd only shows 1st 32 open FD's
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2033804, was opened at 2008-07-31 14:27
Message generated for change (Settings changed) made by hughesj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=2033804&group_id=32541
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Filesystem
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: John Hughes (hughesj)
Assigned to: John Hughes (hughesj)
Summary: On OpenSSI /proc/$$/fd only shows 1st 32 open FD's
Initial Comment:
perl -e 'for (1..100) {pipe "X$_", "Y$_"} ; system "ls /proc/$$/fd";'
0 10 12 14 16 18 2 21 23 25 27 29 30 4 6 8
1 11 13 15 17 19 20 22 24 26 28 3 31 5 7 9
What's happend to fd's 32 to 203?
When using recent glib's (glib2) this screws up the function g_spawn_async_with_pipes. This, for example, prevents gnome-terminal opening more than 10 windows. (It hangs when openening the 11th).
----------------------------------------------------------------------
Comment By: Roger Tsang (rogertsang)
Date: 2008-10-10 16:50
Message:
checked into CVS trunk
----------------------------------------------------------------------
Comment By: John Hughes (hughesj)
Date: 2008-08-01 11:53
Message:
Logged In: YES
user_id=166336
Originator: YES
Well, a little bug in that patch (off by 1 if we tried to return more
dirents than the user buffer could hold). Here's a better one, that also
moves all the +/-2 craziness to fs/proc/base.c
File Added: proc-self-fd.patch
----------------------------------------------------------------------
Comment By: John Hughes (hughesj)
Date: 2008-07-31 18:23
Message:
Logged In: YES
user_id=166336
Originator: YES
Ok, proc/fs/base.c was being a bit confused. Attached is patch that fixes
problem.
File Added: base.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=2033804&group_id=32541
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/