Browse Source

pid and wait() processing under solaris

pre-master-46
dwarning 18 years ago
parent
commit
cb8dc85cfb
  1. 3
      ChangeLog
  2. 8
      src/frontend/aspice.c

3
ChangeLog

@ -1,3 +1,6 @@
2008-05-31 Dietmar Warning
* src/frontend/aspice.c: compliant processing of pid and wait() also under solaris
2008-05-24 Holger Vogt
* src/frontend/com_fft.c: Fast fourier transform added for transient data analysis.
* src/frontend/spec.c: Progress status display for Windows added

8
src/frontend/aspice.c

@ -177,9 +177,9 @@ sigchild(void)
* whether the exit was normal or not.
*/
#if defined(__NetBSD__) || defined(SOLARIS)
#if defined(__NetBSD__)
pid_t status;
#elif defined(__FreeBSD__) || defined(__APPLE__)
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(SOLARIS)
int status;
#else
union wait status;
@ -193,7 +193,7 @@ ft_checkkids(void)
struct proc *p = NULL, *lp = NULL;
char buf[BSIZE_SP];
FILE *fp;
int pid = 0;
pid_t pid = 0;
static bool here = FALSE; /* Don't want to be re-entrant. */
if (!numchanged || here)
@ -220,7 +220,7 @@ ft_checkkids(void)
if (p == NULL) {
fprintf(cp_err,
"ft_checkkids: Internal Error: Process %d not a job!\n",
pid);
(int) pid);
here = FALSE;
return;
}

Loading…
Cancel
Save