commit 7c7122a2d3a18af32c977ea9b34ebe526cc2fa0e
parent 10057e900be66128f16fb7fb8d4d2a08f6934742
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Sun, 3 Nov 2019 10:29:06 +0100
remove the need for exit.h in named pipe bug check
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/trynpbg1.c b/trynpbg1.c
@@ -4,7 +4,7 @@
#define FN "temp-trynpbg1.fifo"
-void main()
+int main()
{
int flagbug;
struct timeval instant;
@@ -22,5 +22,5 @@ void main()
}
unlink(FN);
}
- _exit(!flagbug);
+ return !flagbug;
}