[git commit] ipcs: tweak output orer to match util-linux 2.28

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 9 17:27:01 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=890bd5de5114cff73928f9bd405ed7fb6e579015
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 util-linux/ipcs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index f0d405d..7092ecd 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -632,6 +632,10 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv)
 		flags |= flag_msg | flag_shm | flag_sem;
 	bb_putchar('\n');
 
+	if (flags & flag_msg) {
+		do_msg();
+		bb_putchar('\n');
+	}
 	if (flags & flag_shm) {
 		do_shm();
 		bb_putchar('\n');
@@ -640,9 +644,5 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv)
 		do_sem();
 		bb_putchar('\n');
 	}
-	if (flags & flag_msg) {
-		do_msg();
-		bb_putchar('\n');
-	}
 	fflush_stdout_and_exit(EXIT_SUCCESS);
 }


More information about the busybox-cvs mailing list