mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Make util's compilable on Solaris_mt
This commit is contained in:
parent
3b78246217
commit
2758d1a468
@ -98,11 +98,12 @@ pid_t UTIL_start_process(const char* process, char** argv)
|
||||
/* add place in argv for visibility to "ps" */
|
||||
strcpy(argv[0], string);
|
||||
#if (defined SOLARIS_MT)
|
||||
if (!(pid = fork1())) {
|
||||
pid_t pid =fork1();
|
||||
if (!pid) {
|
||||
if (execv(string, argv) == -1) {
|
||||
ib_fprintf(ib_stderr, "Could not create child process %s with args %s\n",
|
||||
/* ib_fprintf(ib_stderr, "Could not create child process %s with args %s\n",
|
||||
string, argv);
|
||||
|
||||
*/
|
||||
}
|
||||
exit(FINI_ERROR);
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ static bool start_server( ibmgr_data_t* data)
|
||||
*/
|
||||
if (!(pid = fork1())) {
|
||||
if (execv(path, argv) == -1) {
|
||||
ib_fprintf(OUTFILE, "Could not create child process %s with args %s \n",
|
||||
printf("Could not create child process %s with args %s \n",
|
||||
path, argv[1]);
|
||||
}
|
||||
_exit(FINI_ERROR);
|
||||
@ -549,7 +549,7 @@ static bool start_server( ibmgr_data_t* data)
|
||||
|| WCOREDUMP(exit_status)
|
||||
|| WIFSIGNALED(exit_status)))
|
||||
{
|
||||
ib_printf("Guardian process %ld terminated with code %ld\n",
|
||||
printf("Guardian process %ld terminated with code %ld\n",
|
||||
pid, WEXITSTATUS(exit_status));
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user