LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-01-2007, 05:51 PM   #1
Ken-ji
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, 06:55 PM   #2
hollywoodb
Member
 
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.

http://dhcpcd.berlios.de/
 
  


Reply



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 04:26 PM
perl ignore return codes twistedpair Programming 5 02-14-2006 04:54 PM
mprotect() return codes tim_l Programming 2 05-09-2005 07:38 AM
exit codes introuble Programming 2 05-08-2005 12:53 PM
return codes in c exvor Programming 4 01-21-2005 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:09 AM.

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