aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* xenstore: Do not assign to stdout/stderr/stdin - they are notkfraser@localhost.localdomain2007-08-011-4/+3
| | | | | implemented as variables on all systems. Signed-off-by: Keir Fraser <keir@xensource.com>
* xenstored: Do not write to stderr if we are daemonised!kfraser@localhost.localdomain2007-08-011-6/+5
| | | | | | This fixes client reader-thread deaths in which a 'garbage string' was being read instead of a well-formed message header. Signed-off-by: Keir Fraser <keir@xensource.com>
* xenstored: Remove unused util code.kfraser@localhost.localdomain2007-08-011-69/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* tools: Fix xenstored build error by checking vasprintf() return code.Keir Fraser2007-06-101-7/+12
| | | | Signed-off-by: Charles Coffing <ccoffing@novell.com>
* fixup memory leak and return value, if malloc or realloc fail.vhanquez@kneesa.uk.xensource.com2006-01-241-6/+14
| | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
* fixup reallocation to "twice the size + 1", instead of "3 times the size".vhanquez@kneesa.uk.xensource.com2006-01-241-2/+4
| | | | | | | max *= 2 + 1 <==> max *= 3 Signed-off-by: Vincent Hanquez <vincent@xensource.com>
* dup and open error value is -1, not < 0vhanquez@kneesa.uk.xensource.com2006-01-241-1/+1
| | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
* Make xen daemon startup more robust.cl349@firebug.cl.cam.ac.uk2005-08-101-24/+0
| | | | | | | | | | | | | 1) make xenconsoled exit gracefully if xcs dies 2) daemonize xenstored before binding to xenstored socket 3) wait to close stdio in xenstored until we're ready to accept connections (so that PID=`xenstored --output-pid` doesn't return until it's ready to accept connections) 4) updates tools/misc/xend for these changes Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Rusty Russell <rusty@rustycorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* 1) More testing: include tests which I forgot in previous patch, removekaf24@firebug.cl.cam.ac.uk2005-08-081-15/+0
| | | | | | | | | | | | | | | | | | | xs_watch_stress, reduce cycles in "make check" random test. 2) xs_crashme: corrupt random packets going to xenstored, watch it crash. 3) Handle second input from before we finished output on first one. 4) Fix bug where one-arg operations are given zero args. 5) Fix bug where SET_PERMS fails after blocking on transaction. 6) Fix memory leak when DIRECTORY op given no argument. 7) Fail on first memory leak, for better testing. 8) Fix missing waiting_for_ack initialization for new connections. 9) Ensure all input and output is handled for domains so we don't stall. 10) Fix overrun bug in xs_count_strings on non-nul-terminated strings. 11) New test for clients which write without waiting for response. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* Attached are kaf24@firebug.cl.cam.ac.uk2005-08-041-0/+15
| | | | | | | | | three patches to fix a problem with Xend starting consoled. consoled depends on xenstored to be running and xenstored is started on demand in Xend. The patches change xenstored to manage its own pidfile, and have xend start actually start up xenstored.
* xenstored updates.cl349@firebug.cl.cam.ac.uk2005-07-121-12/+10
| | | | | | | | | | - add trace file support. - update permissions code. - trigger watches on children of nodes being removed. - update test cases. Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1662.1.15 (42a5968eiZE_DjdIFPjxvzLw6ACvCQ)cl349@firebug.cl.cam.ac.uk2005-06-071-0/+143
Add xenstore daemon and library. Makefile: Add xenstore subdirectory. Remove xs_stress on clean. Many files: new file ignore: Update ignore list for xenstore. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored) Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>