]> granicus.if.org Git - procps-ng/commitdiff
library: added some justification emphasis, <pids> api
authorJim Warner <james.warner@comcast.net>
Fri, 24 Jul 2020 15:24:57 +0000 (10:24 -0500)
committerCraig Small <csmall@dropbear.xyz>
Wed, 29 Jul 2020 09:01:50 +0000 (19:01 +1000)
I almost feel like I should apologize for this kind of
patch ( *almost* ). But, since this comment was unique
to the <pids> api and since it was especially designed
to align with the following comment and since the next
comment already carried the alignment emphasis, I will
refrain from issuing any apology and submit it anyway.

[ plus to prove that i am not totally anal-retentive ]
[ and can exercise some restraint there are two more ]
[ places where i COULD have added alignment emphasis ]

[ see lines 804-806 and lines 1360-1361 for my proof ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c

index c05743d7236be93571bba9debcf11646a68aaec5..61fb5d17932035e1da83e088fa32154cb7f7d293 100644 (file)
@@ -1069,9 +1069,9 @@ static int pids_stacks_fetch (
         if (!pids_assign_results(info, info->fetch.anchor[n_inuse++], &task))
             return -1;       // here, errno was set to ENOMEM
     }
-    /* while the possibility is extremely remote, the readproc.c (read_something)
-       simple_readproc and simple_readtask guys could have encountered this error
-       in which case they would have returned a NULL, thus ending our while loop. */
+    /* while the possibility is extremely remote, the readproc.c (read_something) |
+       simple_readproc and simple_readtask guys could have encountered this error |
+       in which case they would have returned a NULL, thus ending our while loop. */
     if (errno == ENOMEM)
         return -1;