Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-01-2007, 06:51 PM   #1
LQ Newbie
Registered: Apr 2003
Location: Philippines
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
Question 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.
Old 04-01-2007, 07:55 PM   #2
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need the return codes of the child processes gururaj Linux - Software 1 04-25-2006 05:26 PM
perl ignore return codes twistedpair Programming 5 02-14-2006 05:54 PM
mprotect() return codes tim_l Programming 2 05-09-2005 08:38 AM
exit codes introuble Programming 2 05-08-2005 01:53 PM
return codes in c exvor Programming 4 01-21-2005 09:45 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration