summaryrefslogtreecommitdiff
path: root/subplot/data.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-02-19 20:19:15 +0200
committerLars Wirzenius <liw@liw.fi>2021-02-19 20:19:15 +0200
commitff17410cbee1492a5ca87869f76a2dafb7f90430 (patch)
tree0266517f6efc8027c5c58c7634de5e7176ee1a64 /subplot/data.py
parent248e5ab7518746c0ac43747040290e9b5d138028 (diff)
downloadobnam2-ff17410cbee1492a5ca87869f76a2dafb7f90430.tar.gz
feat: backup and restore named pipes (FIFOs)
Diffstat (limited to 'subplot/data.py')
-rw-r--r--subplot/data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/subplot/data.py b/subplot/data.py
index 3c369d1..0c1a4a5 100644
--- a/subplot/data.py
+++ b/subplot/data.py
@@ -24,6 +24,10 @@ def create_unix_socket(ctx, filename=None):
fd.bind(filename)
+def create_fifo(ctx, filename=None):
+ os.mkfifo(filename)
+
+
def create_nonutf8_filename(ctx, dirname=None):
filename = "\x88"
os.mkdir(dirname)