[CalendarServer-changes] [15399] CalendarServer/trunk/support/python-wrapper.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Dec 15 11:39:07 PST 2015
Revision: 15399
http://trac.calendarserver.org//changeset/15399
Author: cdaboo at apple.com
Date: 2015-12-15 11:39:07 -0800 (Tue, 15 Dec 2015)
Log Message:
-----------
Use Py_Main result as the result of the wrapper.
Modified Paths:
--------------
CalendarServer/trunk/support/python-wrapper.c
Modified: CalendarServer/trunk/support/python-wrapper.c
===================================================================
--- CalendarServer/trunk/support/python-wrapper.c 2015-12-15 19:25:57 UTC (rev 15398)
+++ CalendarServer/trunk/support/python-wrapper.c 2015-12-15 19:39:07 UTC (rev 15399)
@@ -77,14 +77,16 @@
int main(int argc, const char * argv[]) {
if (uidIsAllowed()) {
+ int result;
+
// Update PATH and PYTHONPATH
prependToPath("PATH", bin);
prependToPath("PYTHONPATH", site);
Py_Initialize();
- Py_Main(argc, (char **)argv);
+ result = Py_Main(argc, (char **)argv);
Py_Finalize();
- return 0;
+ return result;
} else {
printf("You are not allowed to run this executable.\n");
return 1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151215/5fe759e1/attachment.html>
More information about the calendarserver-changes
mailing list