Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
533bb4b1
Commit
533bb4b1
authored
Jul 28, 2008
by
Michael Hanselmann
Browse files
Fix exception class name in utils.WritePidFile
Reviewed-by: iustinp
parent
4cb1d919
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/utils.py
View file @
533bb4b1
...
...
@@ -1067,7 +1067,7 @@ def WritePidFile(name):
pid
=
os
.
getpid
()
pidfilename
=
_DaemonPidFileName
(
name
)
if
IsPidFileAlive
(
pidfilename
):
raise
GenericError
(
"%s contains a live process"
%
pidfilename
)
raise
errors
.
GenericError
(
"%s contains a live process"
%
pidfilename
)
WriteFile
(
pidfilename
,
data
=
"%d
\n
"
%
pid
)
...
...
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