diff --git a/broadcast/broadcast b/broadcast/broadcast index 4462e2a..1837f52 100755 Binary files a/broadcast/broadcast and b/broadcast/broadcast differ diff --git a/build.json b/build.json index c14297d..19600d9 100644 --- a/build.json +++ b/build.json @@ -1,5 +1,5 @@ { - "name": "antd-tunnel-publishers", + "name": "ant-http", "targets":{ "configure": { "require": ["linux"], @@ -7,36 +7,31 @@ { "name": "linux-exec", "data": { - "cmd":"libtoolize", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"libtoolize" } }, { "name": "linux-exec", "data": { - "cmd":"aclocal", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"aclocal" } }, { "name": "linux-exec", "data": { - "cmd":"autoconf", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"autoconf" } }, { "name": "linux-exec", "data": { - "cmd":"automake --add-missing", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"automake --add-missing" } }, { "name": "linux-exec", "data": { - "cmd":"./configure --prefix=/usr --enable-debug=no", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"./configure --prefix=/opt/www" } } ] @@ -47,8 +42,7 @@ { "name": "linux-exec", "data": { - "cmd":"make clean", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"make clean" } } ] @@ -59,8 +53,7 @@ { "name": "linux-exec", "data": { - "cmd":"make", - "pwd": "home://workspace/antd-tunnel-publishers" + "cmd":"make" } } ] @@ -68,6 +61,24 @@ "clean and build": { "depend": ["clean", "build"], "jobs": [] + }, + "release": { + "require": ["linux"], + "depend": ["clean"], + "jobs": [ + { + "name": "linux-exec", + "data": { + "cmd":"make distcheck" + } + }, + { + "name": "linux-exec", + "data": { + "cmd":"mv *.tar.gz dist" + } + } + ] } } } \ No newline at end of file diff --git a/dist/antd-publishers-0.1.2a.tar.gz b/dist/antd-publishers-0.1.2a.tar.gz index ca9e99e..126fde4 100644 Binary files a/dist/antd-publishers-0.1.2a.tar.gz and b/dist/antd-publishers-0.1.2a.tar.gz differ diff --git a/wfifo/wfifo.c b/wfifo/wfifo.c index 3b679b4..0c9ed6b 100644 --- a/wfifo/wfifo.c +++ b/wfifo/wfifo.c @@ -133,8 +133,9 @@ int init_fifo(char *buff, const char *base, const char *user) (void)memset(buff, 0, BUFFLEN); if (stat(base, &path_stat) == 0) { - if (S_ISREG(path_stat.st_mode)) + if (S_ISDIR(path_stat.st_mode)) { + M_DEBUG(MODULE_NAME, "%s is a directory", base); // is directory if (user == NULL) { @@ -151,6 +152,14 @@ int init_fifo(char *buff, const char *base, const char *user) } uid = pwd->pw_uid; } + else + { + M_DEBUG(MODULE_NAME, "%s is not a directory", base); + } + } + else + { + M_DEBUG(MODULE_NAME, "Unable to state %s: %s", base, strerror(errno)); } if (generic_fd) {