On 05/06/2010 10:24 AM, Xue Liu wrote:
Hi

I got some error message when I run izcoordinator

r...@imote2:~/zigbee# izcoordinator -d 2 -l lease -i wpan0 -p 0x777 -s -c 11
Opt: d (64)
Opt: l (6c)
Opt: i (69)
Opt: p (70)
Opt: s (73)
Opt: � (ff)
Starting parse
Entering state 0
Reading a token: Now at end of input.
Reducing stack by rule 1 (line 130):
-> $$ = nterm input (0.0-0.0: )
Stack now 0
Entering state 2
Now at end of input.
Shifting token $end (1.1-1.1: )
Entering state 6
Stack now 0 2 6
Cleanup: popping token $end (1.1-1.1: )
Cleanup: popping nterm input (0.0-0.0: )
open: No such file or directory

I search the coordinator.c and find it in line 445:

pid_fd = open (PID_FILE, O_WRONLY | O_CREAT, 0640);
if (pid_fd < 0) {
perror ("open");
return 1;

I don't know what "PID_FILE" stand for. I google it, but found no useful info. Thx

PID_FILE is defined by the configure script in the Makefile:

~/tmp/linux-zigbee$ grep -r PID_FILE= *
src/Makefile.in: -DLEASE_FILE=\"$(leasefile)\" -DPID_FILE=\"$(pidfile)\"
src/Makefile:   -DLEASE_FILE=\"$(leasefile)\" -DPID_FILE=\"$(pidfile)\"
src/Makefile.am:izcoordinator_CFLAGS += -DPID_FILE=\"$(pidfile)\"

and passed to compiler when you run make:

make
...
/bin/sh ../libtool --tag=CC --mode=link gcc -g3 -Wall -DLEASE_FILE=\"/usr/local/var/lib/lowpan-tools/izcoordinator.leases\" -DPID_FILE=\"/usr/local/var/run/izcoordinator.pid\" -Werror -g -O2 -o izcoordinator izcoordinator-coordinator.o ../addrdb/libaddrdb.la ../lib/libcommon.la -lnl -lfl
...


** You can change its value through ./configure :

$./configure --help
  --with-pidfile          pid file location


--
Olivier Fauchon
www.oflabs.com


------------------------------------------------------------------------------

_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to