Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
38d2eca5
Commit
38d2eca5
authored
Dec 04, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closing file does not emmit exception
parent
89988875
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
daemon.py
settingsd/daemon.py
+3
-2
No files found.
settingsd/daemon.py
View file @
38d2eca5
...
...
@@ -28,6 +28,9 @@ def pidsListOfPythonProc(proc_name, without_options_list = [], uid = 0) :
cmdline_file
=
open
(
cmdline_file_path
)
cmdline_list
=
cmdline_file
.
read
()
.
split
(
"
\0
"
)
try
:
cmdline_file
.
close
()
except
:
pass
if
len
(
cmdline_list
)
>=
2
and
os
.
path
.
basename
(
cmdline_list
[
1
])
==
proc_name
:
ignore_flag
=
False
...
...
@@ -37,8 +40,6 @@ def pidsListOfPythonProc(proc_name, without_options_list = [], uid = 0) :
break
if
not
ignore_flag
:
proc_pids_list
.
append
(
proc_pid
)
cmdline_file
.
close
()
return
proc_pids_list
def
maxFd
()
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment