Revision edada04b
b/lib/constants.py | ||
---|---|---|
232 | 232 |
PROC_MOUNTS = "/proc/mounts" |
233 | 233 |
|
234 | 234 |
# Local UniX Interface related constants |
235 |
LUXI_EOM = "\3"
|
|
235 |
LUXI_EOM = chr(3)
|
|
236 | 236 |
LUXI_VERSION = CONFIG_VERSION |
237 | 237 |
#: Environment variable for the luxi override socket |
238 | 238 |
LUXI_OVERRIDE = "FORCE_LUXI_SOCKET" |
b/lib/daemon.py | ||
---|---|---|
454 | 454 |
# sending more than one wakeup token, which doesn't harm at all. |
455 | 455 |
if self.need_signal: |
456 | 456 |
self.need_signal = False |
457 |
self.out_socket.send("\0")
|
|
457 |
self.out_socket.send(chr(0))
|
|
458 | 458 |
|
459 | 459 |
|
460 | 460 |
class _ShutdownCheck: |
b/lib/utils/__init__.py | ||
---|---|---|
672 | 672 |
"""Notifies the wakeup file descriptor. |
673 | 673 |
|
674 | 674 |
""" |
675 |
self._write_fh.write("\0")
|
|
675 |
self._write_fh.write(chr(0))
|
|
676 | 676 |
|
677 | 677 |
def __del__(self): |
678 | 678 |
"""Called before object deletion. |
b/tools/lvmstrap | ||
---|---|---|
710 | 710 |
raise OperationalError("CRITICAL: Can't read partition table information" |
711 | 711 |
" from /dev/%s (needed 512 bytes, got %d" % |
712 | 712 |
(name, len(olddata))) |
713 |
newdata = "\0" * 512
|
|
713 |
newdata = chr(0) * 512
|
|
714 | 714 |
os.lseek(fd, 0, 0) |
715 | 715 |
bytes_written = os.write(fd, newdata) |
716 | 716 |
os.close(fd) |
Also available in: Unified diff