Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 48387 Details for
Bug 73067
baselayout net module "ipppd" needs patch to work with isdn4k-utils-3.5_pre20041110
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixes clean_pidfile function
functions.patch (text/plain), 654 bytes, created by
Roy Marples (RETIRED)
on 2005-01-13 03:56:12 UTC
(
hide
)
Description:
fixes clean_pidfile function
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-01-13 03:56:12 UTC
Size:
654 bytes
patch
obsolete
>--- /lib/rcscripts/net.modules.d/helpers.d/functions >+++ /lib/rcscripts/net.modules.d/helpers.d/functions >@@ -83,13 +83,16 @@ > # Removes the given pidfile if the process is not running > # Returns 1 if the process is still running otherwise 0 > clean_pidfile() { >- local pidfile=${1} cmd >+ local pidfile=${1} > > [[ ! -f ${pidfile} ]] && return 0 >+ local pid=$( cat ${pidfile} ) > >- cmd=${pidfile##*/} >- cmd=${cmd%%-*} >- ps -p $( cat ${pidfile} 2>/dev/null ) | grep -q ${cmd} && return 1 >+ if [[ -n ${pid} ]]; then >+ local cmd=${pidfile##*/} >+ cmd=${cmd%%-*} >+ ps -p ${pid} 2>/dev/null | grep -q ${cmd} && return 1 >+ fi > > rm -f ${pidfile} > return 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73067
:
45078
|
48301
|
48386
| 48387