Revision 05c4bfa0
Added by Ermal LUÇI over 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2469 | 2469 |
|
2470 | 2470 |
function find_dhclient_process($interface) { |
2471 | 2471 |
if ($interface) |
2472 |
$pid = `/bin/pgrep -xf "dhclient: {$interface}"`; |
|
2472 |
$pid = `/bin/pgrep -axf "dhclient: {$interface}"`;
|
|
2473 | 2473 |
else |
2474 | 2474 |
$pid = 0; |
2475 | 2475 |
|
Also available in: Unified diff
Pass the -a parameters to pgrep to be certain we search ancestors as well. The side effects might be inoquos from the pfSense context.