|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 14 of 24] libxl: add pid path to libxl__spawner_s
On Tue, Oct 04, Ian Campbell wrote:
> On Mon, 2011-10-03 at 16:54 +0100, Olaf Hering wrote:
> > +++ b/tools/libxl/libxl_internal.h
> > @@ -250,6 +250,7 @@ typedef struct {
> >
> > typedef struct {
> > char *dom_path; /* from libxl_malloc, only for
> > libxl_spawner_record_pid */
> > + char *pid_path; /* from libxl_malloc, only for
> > libxl_spawner_record_pid */
>
> Either this new comment is true and you need a strdup() up above where
> you set it and a free() somewhere else (or use libxl__strdup()) or it is
> false and it should be removed and pid_path should be const char *.
>
> I think the second option is sufficient for the current and new user you
> are about to add?
I duplicated the dom_path line without paying attention to the comment.
A const char *pid_path; is sufficient.
Olaf
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 07 of 24] xenpaging: move page add/resume loops into its own function, (continued)
- [Xen-devel] [PATCH 07 of 24] xenpaging: move page add/resume loops into its own function, Olaf Hering
- [Xen-devel] [PATCH 23 of 24] xenpaging: add cmdline interface for pager, Olaf Hering
- [Xen-devel] [PATCH 15 of 24] libxl: add libxl__wait_for_offspring function, Olaf Hering
- [Xen-devel] [PATCH 05 of 24] xenpaging: remove xc_dominfo_t from paging_t, Olaf Hering
- [Xen-devel] [PATCH 20 of 24] xenpaging: add XEN_PAGING_DIR / libxl_xenpaging_dir_path(), Olaf Hering
- [Xen-devel] [PATCH 04 of 24] xenpaging: update xenpaging_init, Olaf Hering
- [Xen-devel] [PATCH 02 of 24] xenpaging: remove obsolete comment in resume path, Olaf Hering
- [Xen-devel] [PATCH 08 of 24] xenpaging: compare both token and path when checking for @releaseDomain event, Olaf Hering
- [Xen-devel] [PATCH 14 of 24] libxl: add pid path to libxl__spawner_starting, Olaf Hering
- [Xen-devel] [PATCH 13 of 24] libxl: rename dm_xenstore_record_pid to libxl_spawner_record_pid, Olaf Hering
- [Xen-devel] [PATCH 12 of 24] libxl: rename libxl__device_model_starting, Olaf Hering
- [Xen-devel] [PATCH 06 of 24] xenpaging: track the number of paged-out pages, Olaf Hering
- [Xen-devel] [PATCH 19 of 24] xenpaging: install into LIBEXEC dir, Olaf Hering
- [Xen-devel] [PATCH 22 of 24] xenpaging: watch the guests memory/target-tot_pages xenstore value, Olaf Hering
- [Xen-devel] [PATCH 21 of 24] xenpaging: use guests tot_pages as working target, Olaf Hering
- Re: [Xen-devel] [PATCH 00 of 24] xenpaging fixes for xen-unstable, Ian Campbell
|
|
|
|
|