Skip to contentSkip to conversation

Set more than 32K pid_max (reformatted)

Bugfix Petri Koistinen 1 participant 1 message Jan 6, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi!

Quoted 9 lines · Yi
Quoted 1 line · Marcos D. Marado Torres
Quoted 1 line

         if (!offset || !atomic_read(&map->nr_free))=

{

Quoted 3 lines
Quoted 1 line

+               if (!offser)

I suppose it should be "if (!offset)"...

Yes, my mistake. Thanks!

Nope, my fault. Here it goes one more time, hopefully right.

Petri

kernel/pid.c 2004-01-05 17:55:35.000000000 +0200 renamed from kernel/pid.c.orig 2004-01-05 17:54:46.000000000 +0200 +2 -0
@@ -122,6 +122,8 @@
        }
 
        if (!offset || !atomic_read(&map->nr_free)) {
+               if (!offset)
+                       map--;
 next_map:
                map = next_free_map(map, &max_steps);
                if (!map)