ipcs: tweak output orer to match util-linux 2.28

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-08-09 19:27:01 +02:00
parent c6ce1c9ca3
commit 890bd5de51

View File

@ -632,6 +632,10 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv)
flags |= flag_msg | flag_shm | flag_sem; flags |= flag_msg | flag_shm | flag_sem;
bb_putchar('\n'); bb_putchar('\n');
if (flags & flag_msg) {
do_msg();
bb_putchar('\n');
}
if (flags & flag_shm) { if (flags & flag_shm) {
do_shm(); do_shm();
bb_putchar('\n'); bb_putchar('\n');
@ -640,9 +644,5 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv)
do_sem(); do_sem();
bb_putchar('\n'); bb_putchar('\n');
} }
if (flags & flag_msg) {
do_msg();
bb_putchar('\n');
}
fflush_stdout_and_exit(EXIT_SUCCESS); fflush_stdout_and_exit(EXIT_SUCCESS);
} }