Changeset 6622


Ignore:
Timestamp:
Nov 14, 2016 12:25:18 PM (8 years ago)
Author:
ldelgass
Message:

Merge fixes from nanoscale trunk (minus the config parser changes)

Location:
nanoscale/branches/1.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nanoscale/branches/1.0

  • nanoscale/branches/1.0/Makefile.in

    r4585 r6622  
    6060
    6161clean:
    62         $(RM) -r a.out $(SERVER_OBJS) *~ core* $(TARGETS) *.log *.tmp logfile* .deps/*.d
     62        $(RM) -r a.out *.o *~ core* $(TARGETS) .deps/*.d
    6363
    6464distclean: clean
  • nanoscale/branches/1.0/renderservers.tcl.in

    r6505 r6622  
    1818#       } {
    1919#           variables...
    20 #       } 
     20#       }
    2121#
    2222# Registers a server by <name> at port <port>.
    2323# When a connection is made to <port>, <command> is run.
    24 # Environment variables will be set before executing command. 
     24# Environment variables will be set before executing command.
    2525#
    2626# Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY
     
    2828#
    2929# Defaults:
    30 #   o Server reads from file descriptor 0.
    31 #   o Server writes to descriptor 1.
    32 #   o Server stdout and stderr are redirected to a log file. 
     30#   - Server reads from file descriptor 0.
     31#   - Server writes to descriptor 1.
     32#   - Server stdout and stderr are redirected to a log file.
    3333#
    3434
     
    3737set libdir "@libdir@"
    3838
    39 # GeoVis server (port 2015) --
    40 #     Map renderer
     39# GeoVis --
     40#       Server Type     Map and globe renderer
     41#       Port            2015
     42#       Threaded        yes
     43# Notes:
    4144#
    42 register_server geovis 2015 \
    43     -output 3 -logstdout no -logstderr no \
    44 {
    45     ${bindir}/geovis -o 3 -p ${libdir}/resources
     45register_server geovis 2015 -output 3 -logstdout 0 -logstderr 0 {
     46    ${bindir}/geovis -o 3 -t 43260 -p ${libdir}/resources
    4647} {
    4748    LD_LIBRARY_PATH ${libdir}
     
    5455#       Port            2000
    5556#       Threaded        yes
    56 # Notes:
    57 #       o Continue to use default options until we offically upgrade
    58 #         nanovis to the latest release.  We are currently using a 1.2
    59 #         version of nanovis.
    60 #       o Requires change to 1.2 nanovis.  Can't redirect stderr to log
    61 #         or X will complain about performing socket operation on non-socket
    62 #         descriptor.
     57# Notes:
    6358#
    64 register_server nanovis 2000 \
    65     -output 3 -logstdout no -logstderr no \
    66 {
    67     ${bindir}/nanovis -o 3 -p ${libdir}/shaders:${libdir}/resources
     59register_server nanovis 2000 -output 3 -logstdout 0 -logstderr 0 {
     60    ${bindir}/nanovis -o 3 -t 43260 -p ${libdir}/shaders:${libdir}/resources
    6861} {
    6962    LD_LIBRARY_PATH ${libdir}
     
    7265
    7366# VtkVis --
    74 #       Server type     3D drawings (scene graphs). Contour and surface graphs.
     67#       Server Type     VTK based 3D renderer
    7568#       Port            2010
    7669#       Threaded        yes
    7770# Notes:
    78 #       o Removed ${vtkdir} from LD_LIRBRARY_PATH. Not needed with VTK 6.
    79 #       o Using new features in nanoscale/vtkvis to use file descriptor 3
    80 #         for server output.  No automatic logging of stdout and stderr.
    8171#
    82 register_server vtkvis 2010 \
    83     -output 3 -logstdout no -logstderr no \
    84 {
    85     ${bindir}/vtkvis -o 3
     72register_server vtkvis 2010 -output 3 -logstdout 0 -logstderr 0 {
     73    ${bindir}/vtkvis -o 3 -t 43260
    8674} {
    8775    LD_LIBRARY_PATH ${libdir}
     
    8977}
    9078
    91 # PymolProxy -- 
    92 #       Server type     Molecular layouts using Pymol viewer.
     79# PymolProxy --
     80#       Server Type     Molecular layouts using Pymol viewer
    9381#       Port            2020
    9482#       Threaded        yes
    9583# Notes:
    96 #       o Need PYMOL_SITE_PATH for parallelpiped box.py location.
    97 #       o Makes no sense to log stdout and stderr of the proxy.
    98 #       o Renamed to just pymolproxy and removed non-threaded entry.
     84#       - Need PYMOL_SITE_PATH for parallelpiped box.py location.
     85#       - For debug tracing, redirect stderr of the proxy to a log file.
    9986#
    100 register_server pymolproxy 2020 \
    101     -logstdout no -logstderr no \
    102 {
     87register_server pymolproxy 2020 -logstdout 0 -logstderr 0 -combinelogs 0 {
    10388    ${bindir}/pymolproxy ${bindir}/pymol -p -q -i -x -X 0 -Y 0
    10489} {
     
    10893}
    10994
    110 # VmdShow -- 
    111 #       Server type     Molecular layouts using VMD viewer (for mdshowcase).
     95# VmdShow --
     96#       Server Type     Molecular layouts using VMD viewer (for mdshowcase)
    11297#       Port            2018
    11398#       Threaded        no
    11499# Notes:
    115 #       o Commands are sent directly to the VMD process that uses custom
     100#       - Commands are sent directly to the VMD process that uses custom
    116101#         TCL code to process.
    117 #       o Redirect input to descriptor 3: Otherwise VMD will get select hit.
    118 #       o Redirect output to descriptor 4: Lots of information written to
     102#       - Redirect input to descriptor 3: Otherwise VMD will get select hit.
     103#       - Redirect output to descriptor 4: Lots of information written to
    119104#         stdout and stderr of VMD.  Captured in log file.
    120 #       o Executing binary without wrapper shell script. Requires VMDDIR set.
    121 #       o Meshing programs surf and msms require explicit environment variables.
    122 #       o __GL_SYNC_TO_VBLANK probably doesn't matter.
    123 #       o Client doesn't send data files to VMD, but file paths.  Unlikely
    124 #         client will block on a large write. 
    125 #       
    126 register_server vmdshow 2018 \
    127     -input 3 -output 4 -combinelogs yes \
    128 {
     105#       - Executing binary without wrapper shell script. Requires VMDDIR set.
     106#       - Meshing programs surf and msms require explicit environment variables.
     107#       - Client doesn't send data files to VMD, but file paths.  Unlikely
     108#         client will block on a large write.
     109#
     110register_server vmdshow 2018 -input 3 -output 4 -combinelogs 1 {
    129111    ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \
    130112        -args -stdio
     
    134116    MSMSSERVER ${libdir}/vmd/msms
    135117    STRIDE_BIN ${libdir}/vmd/stride
    136     LD_LIBRARY_PATH ""
    137118    __GL_SYNC_TO_VBLANK 0
    138119}
  • nanoscale/branches/1.0/server.c

    r6505 r6622  
    548548                        serverPtr->name, getpid());
    549549                    if (serverPtr->logStdout) {
    550                         newFd = open(path, O_WRONLY | O_CREAT| O_TRUNC, 0600);
     550                        newFd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
    551551                    } else {
    552552                        newFd = open("/dev/null", O_WRONLY, 0600);
     
    639639                display[3] = screenNum + '0';
    640640                setenv("DISPLAY", display, 1);
    641                 /* Set the enviroment, if necessary. */
     641                /* Don't pollute child's environment with our library path.
     642                 * Library path should be explicitly set in config if needed.
     643                 */
     644                unsetenv("LD_LIBRARY_PATH");
     645                /* Set the configured environment */
    642646                for (i = 0; i < serverPtr->numEnvArgs; i += 2) {
    643647                    setenv(serverPtr->envArgs[i], serverPtr->envArgs[i+1], 1);
Note: See TracChangeset for help on using the changeset viewer.