Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: infra/libs/service_utils/_daemon_linux.py

Issue 1365583002: Have service_manager start a cloudtail attached to each service it starts. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Don't use hash() Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « infra/libs/service_utils/_daemon_darwin.py ('k') | infra/libs/service_utils/_daemon_nix.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Locking, timeout, and other process management functions.""" 5 """Locking, timeout, and other process management functions."""
6 6
7 from ._daemon_nix import ( 7 from ._daemon_nix import (
8 become_daemon, 8 become_daemon,
9 close_all_fds,
9 flock, 10 flock,
10 LockAlreadyLocked, 11 LockAlreadyLocked,
11 ) 12 )
12 13
13 14
14 def add_timeout(cmd, timeout_secs): 15 def add_timeout(cmd, timeout_secs):
15 """Adds a timeout to a command using linux's (gnu) /bin/timeout.""" 16 """Adds a timeout to a command using linux's (gnu) /bin/timeout."""
16 return ['timeout', str(timeout_secs)] + cmd 17 return ['timeout', str(timeout_secs)] + cmd
OLDNEW
« no previous file with comments | « infra/libs/service_utils/_daemon_darwin.py ('k') | infra/libs/service_utils/_daemon_nix.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698