[wiki] [sites] add fifo creation in main || Thuban

From: <git_AT_suckless.org>
Date: Fri, 21 Jun 2013 15:13:37 +0200

commit 62ae94ad8d9c4c6a7dc93524d5a3e36d5e537db1
Author: Thuban <thuban_AT_singularity.fr>
Date: Fri Jun 21 15:13:33 2013 +0200

    add fifo creation in main

diff --git a/dwm.suckless.org/dwmstatus/fifo.c b/dwm.suckless.org/dwmstatus/fifo.c
index 48b53ad..4306286 100644
--- a/dwm.suckless.org/dwmstatus/fifo.c
+++ b/dwm.suckless.org/dwmstatus/fifo.c
_AT_@ -38,4 +38,14 @@ snotif()
 }
 
 
+int
+main(void)
+{
+ int ret = 0;
+ ret = mkfifo(FIFO, ACCESSPERMS);
+ if (ret == -1) perror("fifo creation");
+
+ // your code
 
+ return 0;
+}
Received on Fri Jun 21 2013 - 15:13:37 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 21 2013 - 15:24:13 CEST