On Thu, Mar 27, 2014 at 2:28 PM, sven falempin <sven.falem...@gmail.com> wrote: > Sometimes i feel curse (or maybe just tired) : > > main::(/bin/check_network.pl:164): my $src = > system('/usr/bin/pkill -HUP -f "dhclient: trunk0"'); > DB<2> n > main::(/bin/check_network.pl:165): if ($src) { > DB<2> p $src > 33024 > > Of course pkill is supposed to return 0,1,2 or 3 and it does in the shell
perldoc -f system ... The return value is the exit status of the program as returned by the "wait" call. To get the actual exit value, shift right by eight (see below). See also "exec". This is not what you 33024 >> 8 == 129 > I wont even try to think further about that. > > All i wanted was to ask again for a lease , i guess i will just > relaunch because -HUP is > a lie, the pid change . > > Simplicity shall prevail ? > > IMHO , lets remove the HUP signal for dhclient i do not like it anymore !!! > > Best regards, > > -- > > mans says : <<Conversely, if the interface is later manipulated to add > or delete addresses then dhclient will automatically exit. It thus > automatically exits whenever a new dhclient is run on the same interface.>> > > > > -- > --------------------------------------------------------------------------------------------------------------------- > () ascii ribbon campaign - against html e-mail > /\