Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
infrastructure
Hackspace Device Info
Commits
d3669436
Commit
d3669436
authored
Jun 05, 2014
by
Markus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missed the contidtion :(
parent
c17c7f78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
hack_count
hack_count
+9
-9
No files found.
hack_count
View file @
d3669436
...
...
@@ -47,15 +47,15 @@ if __name__ == '__main__':
parser
.
add_argument
(
"-i"
,
"--interval"
,
type
=
int
,
help
=
"Interval for
\
update default=30"
,
default
=
30
)
args
=
parser
.
parse_args
()
try
:
pid
=
os
.
fork
()
if
pid
>
0
:
# exit first parent
sys
.
exit
(
0
)
except
OSError
:
sys
.
stderr
.
write
(
"fork failed"
)
sys
.
exit
(
1
)
if
args
.
daemonize
==
True
:
try
:
pid
=
os
.
fork
()
if
pid
>
0
:
# exit first parent
sys
.
exit
(
0
)
except
OSError
:
sys
.
stderr
.
write
(
"fork failed"
)
sys
.
exit
(
1
)
while
True
:
...
...
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