CCL: "Fork" and "Wait" commands..
- From: Ulf Ekström <uekstrom*gmail.com>
- Subject: CCL: "Fork" and "Wait" commands..
- Date: Wed, 17 Mar 2010 09:00:12 +0100
Sent to CCL by: =?ISO-8859-1?Q?Ulf_Ekstr=F6m?= [uekstrom(0)gmail.com]
> Does anyone know of any Linux fortran compilers that have both the
"wait" and
> "fork" commands?
If you don't find such a compiler you can easily write a wrapper in C
and link that to your fortran program, i.e. (untested)
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
int fork_(void)
{
return fork();
}
int wait_(int *status)
{
return wait(status);
}
Sincerely,
Ulf Ekstrom