fi;
rm -f "$JSERVERSOCK";
- nohup "$BINDIR/$JSERVERBIN" $JSERVERPORT "$JSERVERSOCK" "$JSERVERLEVEL" "$JSERVERLOG" &
+ "$BINDIR/$JSERVERBIN" $JSERVERPORT "$JSERVERSOCK" "$JSERVERLEVEL" "$JSERVERLOG"
}
function startRouter {
- nohup "$BINDIR/router" "$ETCDIR/router_config.xml" &
+ "$BINDIR/router" "$ETCDIR/router_config.xml"
}
function startOpenSRF {
returns 0 on success. -1 on failure.
socket_type is one of INET or UNIX */
int socket_open_client(socket_manager* mgr,
- int socket_type, int port, char* dest_addr) {
+ int socket_type, int port, char* sock_path, char* dest_addr) {
return 0;
}
debug_handler("Socket buf before read %s", buf);
while( (read_bytes = recv(sock_fd, buf, BUFSIZE-1, 0) ) > 0 ) {
debug_handler("Socket %d Read %d bytes and data: %s", sock_fd, read_bytes, buf);
-
- /*
- int l = strlen(buf);
- if(l > 1) {buf[l-1] = '\0';buf[l-2] = '\0';}
- debug_handler("Socket data after cleanup: %s", sock_fd, read_bytes, buf);
- */
-
-
if(mgr->data_received)
mgr->data_received(mgr->blob, mgr, sock_fd, buf, node->parent_id);
/* creates a client socket and adds it to the socket set.
returns 0 on success. -1 on failure.
- socket_type is one of INET or UNIX */
+ socket_type is one of INET or UNIX
+ port is the INET port number
+ sock_path is the UNIX socket file
+ */
int socket_open_client(socket_manager*,
- int socket_type, int port, char* dest_addr);
+ int socket_type, int port, char* sock_path, char* dest_addr);
/* returns the socket_node with the given sock_fd */
socket_node* socket_find_node(socket_manager*, int sock_fd);
SO=mod_xinclude.so
# --------------------------------------------------------
-#TMPDIR = /tmp/ilstmp/opensrf
-#LIBDIR = /openils/lib
-#CC_OPTS = -Wall -O2 -fPIC -I /usr/include/libxml2 -I /opt/include
-#LD_OPTS = -lxml2
-#APXS2 = /opt/bin/apxs
+TMPDIR = /tmp/ilstmp/opensrf
+LIBDIR = /openils/lib
+CC_OPTS = -Wall -O2 -fPIC -I /usr/include/libxml2 -I /opt/include
+LD_OPTS = -lxml2
+APXS2 = /opt/bin/apxs
# --------------------------------------------------------
all: $(SO)
if(!file) {
fprintf(stderr, "No XML file to parse");
+ fflush(stderr);
return HTTP_INTERNAL_SERVER_ERROR;
}
if(!doc) {
fprintf(stderr, "Error parsing XML file %s\n", file);
+ fflush(stderr);
return HTTP_INTERNAL_SERVER_ERROR;
}
if(status < 0) {
fprintf(stderr, "Error processing XIncludes in XML file %s\n", file);
+ fflush(stderr);
return HTTP_INTERNAL_SERVER_ERROR;
}