LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dhcpcd in Slackware 11.0 does not return any exit codes other than 0? (https://www.linuxquestions.org/questions/slackware-14/dhcpcd-in-slackware-11-0-does-not-return-any-exit-codes-other-than-0-a-542483/)

Ken-ji 04-01-2007 05:51 PM

dhcpcd in Slackware 11.0 does not return any exit codes other than 0?
 
Hi. I was running stock Slackware 11.0 (upgraded from 10.2) and I had a script wrapping the dhcpcd to start/restart and background failed dhcpcd (when the ISP is down, etc)

The script relies on dhcpcd to properly return a non zero error level in the case that dhcpcd timed out getting an IP from my ISP. Oddly enough it always returns zero. I then took the code apart and saw that when it times out, it only returns 0 not any other exit code. Being lazy enough I just looked at the older versions of dhcpcd (Slack-10.2 variant) and then I saw that they approximately returned something else. So I copied that line and rebuilt / installed the package.

My question is: has anybody noticed this? and does anybody have a proper fix? or how do we get "official" support for this? (versioning up of dhcpcd might work, but I'm reluctant to try on my only production firewall machine)

PS. I'm at work and can't post more salient details like version numbers.

hollywoodb 04-01-2007 06:55 PM

I'd contact the developers and see if the zero exitcode is intended behaviour, and if it isn't then contact Pat or someone else about Slackware's discrepancy.

http://dhcpcd.berlios.de/


All times are GMT -5. The time now is 10:24 AM.