Regression in 4.0.5: ps p fails with many pids
Due to commit 7f80362b, quick mode is used which as a side effect, limits the "ps p" parameter to 256 comma-separated values. Perhaps the code can fall back to non-quick if more pids are passed?
To trigger the bug, run
./src/ps/pscommand p 1,39,41,42,43,44,45,47,48,49,50,51,53,54,55,56,57,59,60,61,62,63,65,66,67,68,69,71,72,73,74,75,77,78,79,80,81,83,84,85,86,87,89,90,91,92,93,95,96,97,98,99,101,102,103,104,105,107,108,109,110,111,113,116,117,119,120,121,123,124,125,126,127,128,129,130,131,132,133,134,136,137,138,139,140,141,142,143,144,145,146,147,154,155,156,163,173,174,175,176,351,352,360,361,362,363,364,366,367,378,379,384,387,388,405,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,450,451,452,453,458,459,460,461,462,463,464,465,466,487,488,489,490,491,492,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,637,638,639,660,661,662,663,664,683,756,870,895,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,919,920,921,922,925,926,927,928,930,931,932,933,934,935,936,937,939,940,941,942,943,944,945,947,948,950,952