comparison lib/javaversion.c @ 10197:d079dd7b69bc

Add termsigp argument to execute() and wait_process().
author Bruno Haible <bruno@clisp.org>
date Tue, 10 Jun 2008 17:38:39 +0200
parents bbbbbf4cd1c5
children 7c9d441b72fc
comparison
equal deleted inserted replaced
10196:a59b1061e84a 10197:d079dd7b69bc
1 /* Determine the Java version supported by javaexec. 1 /* Determine the Java version supported by javaexec.
2 Copyright (C) 2006, 2007 Free Software Foundation, Inc. 2 Copyright (C) 2006-2008 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2006. 3 Written by Bruno Haible <bruno@clisp.org>, 2006.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or 7 the Free Software Foundation; either version 3 of the License, or
88 line[linelen - 1] = '\0'; 88 line[linelen - 1] = '\0';
89 89
90 fclose (fp); 90 fclose (fp);
91 91
92 /* Remove zombie process from process list, and retrieve exit status. */ 92 /* Remove zombie process from process list, and retrieve exit status. */
93 exitstatus = wait_subprocess (child, progname, true, false, true, false); 93 exitstatus =
94 wait_subprocess (child, progname, true, false, true, false, NULL);
94 if (exitstatus != 0) 95 if (exitstatus != 0)
95 { 96 {
96 free (line); 97 free (line);
97 return false; 98 return false;
98 } 99 }