[Gambas-user] Re; Console applications ..
Laurent Carlier
lordheavym at ...626...
Tue Jul 17 18:59:17 CEST 2007
On Tuesday 17 July 2007 18:51:23 Benoit Minisini wrote:
> On mardi 17 juillet 2007, Gareth Bult wrote:
> > Hi,
> >
> > Is there a "proper" way to background a gambas console application ...
> >
> > I'm currently doing;
> >
> > application >/dev/null 2>&1 &
> >
> > I'm conscious that it's not closing stdin, but it "seems" to be working
> > ok ..
> >
> > Any recommendations ?
> >
> > Gareth.
>
> You can daemonize it now, by setting Application.Daemon to TRUE.
>
> When daemonized, thr application forks, the parent fork terminates, so that
> there is no connection with the initial application parent process, and the
> child fork closes its standard output, input, error output, and sets its
> current directory to "/".
>
> You cannot return to the "non-daemonized" state of course.
>
> The name of this property may change if I (or somebody else) find a better
> name.
>
> Regards,
No, it's really the better name.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20070717/c26b2258/attachment.sig>
More information about the User
mailing list