AW: AW: tar returns error 256?

Klatt Uwe U.Klatt at miwe.de
Wed Jun 10 08:53:34 UTC 2009


Hello,

I use something like this:

  ret = system("tar ....");
  if(ret)
    eprintf("tar failed with error %d\n",ret);

Bye
Uwe

> how did you check the exit status like this ?
>
>            while (something) {
>                int ret = system("foo");
>
>                if (WIFSIGNALED(ret) &&
>                    (WTERMSIG(ret) == SIGINT || WTERMSIG(ret)
> == SIGQUIT))
>                        break;
>            }
>
> re,
>  wh
>


More information about the busybox mailing list