Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does bogofilter give return codes like 0 and 256 when its run from inside a program?

bogofilter program Return run
0
Posted

Why does bogofilter give return codes like 0 and 256 when its run from inside a program?

0

Likely the return codes are being reformatted by waitpid(2). In C use WEXITSTATUS(status) in sys/wait.h, or comparable macro, to get the correct value. In Perl you can just use ‘system(“bogofilter $input”) >> 8’. If you want more info, run “man waitpid”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123