=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/ox_launch.c,v retrieving revision 1.3 retrieving revision 1.5 diff -u -p -r1.3 -r1.5 --- OpenXM_contrib2/asir2000/io/ox_launch.c 2000/08/21 08:31:38 1.3 +++ OpenXM_contrib2/asir2000/io/ox_launch.c 2000/09/23 00:57:43 1.5 @@ -23,7 +23,7 @@ * shall be made on your publication or presentation in any form of the * results obtained by use of the SOFTWARE. * (4) In the event that you modify the SOFTWARE, you shall notify FLL by - * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification + * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification * for such modification or the source code of the modified part of the * SOFTWARE. * @@ -44,7 +44,7 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/ox_launch.c,v 1.2 2000/02/08 04:47:11 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/ox_launch.c,v 1.4 2000/08/22 05:04:18 noro Exp $ */ #include #include @@ -312,6 +312,7 @@ char *dname; int pid; char wname[BUFSIZ]; char buf[BUFSIZ]; + char errcode; pid = fork(); if ( pid ) @@ -349,6 +350,10 @@ char *dname; putenv("DISPLAY="); execl(prog,prog,0); } + /* On failure */ + errcode = 2; + write(4,&errcode,1); + exit(1); } #endif }