| Title: | DECC |
| Notice: | General DEC C discussions |
| Moderator: | TLE::D_SMITH N TE |
| 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 |
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.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 2165.1 | where else to ask | CAIRN::HARRIS | Kevin Harris, dtn 381-2039 | Mon Apr 28 1997 11:14 | 2 |
Offhand, this sounds like a case for the VMSNOTES conference. -Kevin | |||||
| 2165.2 | SPECXN::DERAMO | Dan D'Eramo | Mon Apr 28 1997 11:41 | 11 | |
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.3 | lib$do_command... | XDELTA::HOFFMAN | Steve, OpenVMS Engineering | Mon Apr 28 1997 13:32 | 16 |
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. | |||||