[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decc

Title:DECC
Notice:General DEC C discussions
Moderator:TLE::D_SMITHNTE
Created:Fri Nov 13 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2212
Total number of notes:11045

2165.0. "lib$do_command routine" by DPPSYS::BOLLAND () Mon Apr 28 1997 10:41

    
    	I'm having a problem with the lib$do_command routine.
    
    	I have a program which has a call to lib$do_command which runs a
    	command file which sends me a mail message.
    
    	When I compile and run my program on a VAX everything works OK, the
    	mail is sent, the program terminates, and I'm left at the $ prompt.
    
    	When I compile (/standard=vaxc) and run my program on an ALPHA the
    	mail is sent but the program does not terminate it just hangs.
    
    	I've tried LIB$SPAWN and the same thing happens.
    
    	Anyone idea ideas ?
    
    
    		thanks,
    			stephen
T.RTitleUserPersonal
Name
DateLines
2165.1where else to askCAIRN::HARRISKevin Harris, dtn 381-2039Mon Apr 28 1997 12:142
Offhand, this sounds like a case for the VMSNOTES conference.
							-Kevin
2165.2SPECXN::DERAMODan D'EramoMon Apr 28 1997 12:4111
        There is a possibility that it is related to the "double ctrl-Y"
        problem on later versions of OpenVMS Alpha (run the program,
        type ctrl-y, type the exit command and the program gets hung
        up in its exit handling.  You need to type ctrl-y and exit
        again.)
        
        If earlier versions of OpenVMS Alpha don't have the problem
        and later ones do, then maybe lib$do_command is getting hung
        up in the rtl exit handling.
        
        Dan
2165.3lib$do_command...XDELTA::HOFFMANSteve, OpenVMS EngineeringMon Apr 28 1997 14:3216
   lib$do_command is a "chaining" function, it stuffs the command into
   the command buffer for execution, and causes the current image to
   exit.  If the mail is sent, I'd look in the DCL procedure with a
   SET VERIFY (or f$verify lexical) to see where the hang occurs -- the
   image that called lib$do_command has already exited by the time the
   mail is sent...

   I can send you some C code which sends e-mail via the callable mail
   interface -- the C code will resolve this particular problem.

   This C code will not address your immediate question -- this question
   is better suited to VMSNOTES.  if you cross-post, we will need the C
   and the DCL code needed to duplicate this problem.  We will also need
   to know the OpenVMS version.