aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-09 19:27:01 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-09 19:27:01 +0200
commit890bd5de5114cff73928f9bd405ed7fb6e579015 (patch)
tree1f8f4ef7ecf229605ebfb4b87dda3babcaefb191
parentc6ce1c9ca3e20ad8441a5aa2f3bda4f57180224e (diff)
downloadbusybox-w32-890bd5de5114cff73928f9bd405ed7fb6e579015.tar.gz
busybox-w32-890bd5de5114cff73928f9bd405ed7fb6e579015.tar.bz2
busybox-w32-890bd5de5114cff73928f9bd405ed7fb6e579015.zip
ipcs: tweak output orer to match util-linux 2.28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/ipcs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index f0d405d67..7092ecd92 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -632,6 +632,10 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv)
632 flags |= flag_msg | flag_shm | flag_sem; 632 flags |= flag_msg | flag_shm | flag_sem;
633 bb_putchar('\n'); 633 bb_putchar('\n');
634 634
635 if (flags & flag_msg) {
636 do_msg();
637 bb_putchar('\n');
638 }
635 if (flags & flag_shm) { 639 if (flags & flag_shm) {
636 do_shm(); 640 do_shm();
637 bb_putchar('\n'); 641 bb_putchar('\n');
@@ -640,9 +644,5 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv)
640 do_sem(); 644 do_sem();
641 bb_putchar('\n'); 645 bb_putchar('\n');
642 } 646 }
643 if (flags & flag_msg) {
644 do_msg();
645 bb_putchar('\n');
646 }
647 fflush_stdout_and_exit(EXIT_SUCCESS); 647 fflush_stdout_and_exit(EXIT_SUCCESS);
648} 648}