[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 3 of 9 v2] libxl: add libxl__forkexec function to libxl_exec



Roger Pau Monné writes ("Re: [Xen-devel] [PATCH 3 of 9 v2] libxl: add 
libxl__forkexec function to libxl_exec"):
> 2011/11/24 Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>:
> > Conveniently, I have already written the second function for you:
> > libxl_report_child_exitstatus :-).
> 
> Why does the libxl_report_child_exitstatus function print
> "unexpectedly exited status zero", shouldn't it print something like
> "child exited successfully"? Or I'm not supposed to call it if
> WIFEXITED(status) && WEXITSTATUS(status) == 0?

You're not supposed to call it in that case, unless you weren't
expecting the process to exit.

And you can write
   WIFEXITED(status) && WEXITSTATUS(status) == 0
more simply as
   status==0
so this is quite easy to do.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.