diff options
Diffstat (limited to '')
-rw-r--r-- | src/passphrase_helper.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/passphrase_helper.h b/src/passphrase_helper.h index 792498e..b8abb3a 100644 --- a/src/passphrase_helper.h +++ b/src/passphrase_helper.h @@ -379,6 +379,17 @@ #endif +#define xpipe(pair) \ + do { \ + if (pipe(pair)) \ + { \ + pair[0] = pair[1] = -1; \ + goto fail; \ + } \ + } while (0) + + + #endif |