From 0afb59a03f6f18a574751a52f6e130ac2d8d0f87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Pinard?= Date: Wed, 16 Nov 1994 02:47:16 +0000 Subject: [PATCH] *** empty log message *** --- src/buffer.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index 6514461..6032255 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -403,7 +403,7 @@ child_open () } else /* This can't happen if (ar_reading==2) archive = rmtopen(ar_files[0], O_RDWR|O_CREAT|O_BINARY, 0666); - else */ if (ar_reading) + else */ if (ar_reading) archive = rmtopen (ar_files[0], O_RDONLY | O_BINARY, 0666); else archive = rmtcreat (ar_files[0], 0666); @@ -1260,24 +1260,23 @@ close_archive () if (childpid) { /* - * Loop waiting for the right child to die, or for - * no more kids. - */ + * Loop waiting for the right child to die, or for + * no more kids. + */ while (((child = wait (&status)) != childpid) && child != -1) ; if (child != -1) { - { - if (WIFSIGNALED (status)) - { - /* SIGPIPE is OK, everything else is a problem. */ - if (WTERMSIG (status) != SIGPIPE) - msg ("child died with signal %d%s", WTERMSIG (status), - WIFCOREDUMPED (status) ? " (core dumped)" : ""); - } - else - { + if (WIFSIGNALED (status)) + { + /* SIGPIPE is OK, everything else is a problem. */ + if (WTERMSIG (status) != SIGPIPE) + msg ("child died with signal %d%s", WTERMSIG (status), + WIFCOREDUMPED (status) ? " (core dumped)" : ""); + } + else + { /* Child voluntarily terminated -- but why? */ if (WEXITSTATUS (status) == MAGIC_STAT) { @@ -1296,9 +1295,9 @@ close_archive () WEXITSTATUS (status)); } } - } -#endif /* __MSDOS__ */ } +#endif /* __MSDOS__ */ +} #ifdef DONTDEF -- 2.44.0